This paper examines issues related to shared resources in a multi-tasking system, and how to protect these resources from being corrupted. Semaphores and the different ways they can be used are discussed in detail. The priority inversion and deadlock problems that can arise when using semaphores are explained, and solutions to work around the problems are provided.

Note: By clicking on the above link, this paper will be emailed to your TechOnline log-in address by Mentor Graphics.