You are on page 1of 12

12/12/2006 R.

Ramesh 1
12/12/2006 R.Ramesh 2
12/12/2006 R.Ramesh 3
12/12/2006 R.Ramesh 4
12/12/2006 R.Ramesh 5
12/12/2006 R.Ramesh 6
12/12/2006 R.Ramesh 7
12/12/2006 R.Ramesh 8
Many Tasks - Advantages
• Divides the work – assign priorities
• Modular – Use separate task for each
device

12/12/2006 R.Ramesh 9
Many Tasks - Disadvantages
• More shared data among two or more tasks
• More semaphore and more semaphore-related
bugs
• Pipes, mailboxes and queues
• Each task requires a stack- More memory for
stack space.
• More - context switching & intercommunication
• Get semaphore - 10 microseconds
• Release semaphore - 6 to 38 microseconds
• Switch task - 17-35 microseconds

12/12/2006 R.Ramesh 10
12/12/2006 R.Ramesh 11
12/12/2006 R.Ramesh 12

You might also like