Open main menu

lensowiki β

Changes

Computer Science/162/proj1

524 bytes added, 01:42, 5 October 2008
+design questions
Finally, we tested larger numbers of both adults and children and verified that the rowing patterns were correct. We tested both combinations with more adults than children and vice versa. The rowing pattern, as well as number of people on Molokai, was monitored to make sure no rules were being violated.
 
==Design questions==
;Why is it fortunate that we did not ask you to implement priority donation for semaphores?
:Be damned if I know. Anyone?
;A student proposes to solve the boats problem by use of a counter, AdultsOnOahu. Since this number isn't known initially, it will be started at zero, and incremented by each adult thread before they do anything else. Is this solution likely to work? Why or why not?
:No, because there is no way of enforcing the fact that everyone will increment it before they do anything else.
1,277
edits