Daily Archives: April 30, 2010

Starvation vs. Synchronize vs. Deadlock

Starvation In computer science, starvation is a multitasking-related problem, where a process is perpetually denied necessary resources. Without those resources, the program can never finish its task. Starvation is similar in effect to deadlock. Two or more programs become deadlocked … Continue reading

Leave a comment

Threads vs. Processes

Threads vs. Processes Processes Both threads and processes are methods of parallelizing an application. However, processes are independent execution units that contain their own state information, use their own address spaces, and only interact with each other via interprocess communication … Continue reading

Leave a comment

Mutex vs. Semaphore, what is the difference?

Mutex vs. Semaphore, what is the difference? The Toilet Example Mutex Is a key to a toilet. One person can have the key – occupy the toilet – at the time. When finished, the person gives (frees) the key to … Continue reading

Leave a comment