One of the benefits of using multiple threads in an application is that each thread executes synchronously. For Windows applications, this allows time-consuming tasks to be performed in the background while the application window and controls remain responsive. For server applications, multithreading provides the ability to handle each incoming request with a different thread. Otherwise, each new request would not get serviced until the previous request had been fully satisfied.However, the asynchronous nature of threads means that access to resources such as file handles, network connections, and memory must be coordinated. Otherwise, two or more threads could access the same resource at the same time, each unaware of the other's actions. The result is unpredictable data corruption.
Showing posts with label Mutex. Show all posts
Showing posts with label Mutex. Show all posts
Wednesday, December 28, 2011
Subscribe to:
Posts (Atom)