May 2004
Intermediate to advanced
888 pages
22h 31m
English
Writing a multithreaded application is pointless if multiple threads cannot interact in a predictable and bug-free manner. A body of code is said to be thread-safe if multiple threads can safely execute it without any side effects. One way of making a method or function thread-safe is to serialize access to it, thereby allowing only one thread to execute the code at a time.
Thread-safe code can be accomplished by following a few guidelines:
Read now
Unlock full access