next up previous
Next: Check out pthread mutexes Up: Assignment 6: Synchronization Primitives Previous: Break the lock

Estimate the quantum size

What if each thread were to put its pid into the array? Then the array would contain long streaks of one pid followed by long streaks of another pid. Does that give you any ideas?



Allen Downey
2000-04-01