icepil@hotmail.com
Newbie level 1
i need help answering some questions. if you know one of them, i'd like to have something posted from you. number 3 is giving me the hardest time, and i need help with that the most, see ya friends.
1)
A data structure can be shared between reader processes and a single writer process. Reader processes can only read from the data structure and the writer process can only write to it. Write, using semaphores, the body (in pseudocode) of an algorithm showing how semaphores can be used to allow many concurrent reader processes and a single writer process but not both.
2)
A critical conditional region (CCR) is of the form:
Region X when B do S1;
Sketch (in pseudocode) the structure of an algorithm showing how to implement a CCR using semaphores.
3)
One of the criticisms of monitors is that condition synchronization is too low-level and unstructured. Explain what is meant by this statement. A higher level monitor synchronisation primitive might be like the form:
WaitUntil Boolean_expression;
where the process is delayed until the Boolean expression evaluates to true. For example:
WaitUntil x < y + 5;
Although this form of condition synchronization is more structured it is not found in most languages which support monitors. Explain why this. Show how the bounded buffer problem can be solved using the WaitUntil synchronization primitive inside a monitor.
/Warning #1 - Do not make crossposts.
Your second message was deleted.
(klug)/
1)
A data structure can be shared between reader processes and a single writer process. Reader processes can only read from the data structure and the writer process can only write to it. Write, using semaphores, the body (in pseudocode) of an algorithm showing how semaphores can be used to allow many concurrent reader processes and a single writer process but not both.
2)
A critical conditional region (CCR) is of the form:
Region X when B do S1;
Sketch (in pseudocode) the structure of an algorithm showing how to implement a CCR using semaphores.
3)
One of the criticisms of monitors is that condition synchronization is too low-level and unstructured. Explain what is meant by this statement. A higher level monitor synchronisation primitive might be like the form:
WaitUntil Boolean_expression;
where the process is delayed until the Boolean expression evaluates to true. For example:
WaitUntil x < y + 5;
Although this form of condition synchronization is more structured it is not found in most languages which support monitors. Explain why this. Show how the bounded buffer problem can be solved using the WaitUntil synchronization primitive inside a monitor.
/Warning #1 - Do not make crossposts.
Your second message was deleted.
(klug)/