O'Reilly logo

LDAP Programming with Java™ by Tony Dahbura, Rob Weltman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sometimes One Thread Is Not Enough

Java makes it easy to do more than one thing at once with the Thread class. In many traditional programming environments, you have to do tricks with asynchronous I/O or with message queues to prevent an application from apparently freezing while waiting for an operation to complete. With Java, you can create a thread to perform a task involving lengthy computations or synchronous I/O. The user interface thread continues to update the user interface elements so that screens can be repainted and the application appears responsive to the user. There may be a list or table that is continuously updated as the results of a search become available.

The Java LDAP classes are all thread safe. You can launch several threads ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required