Get instructions for using pine for
reading cscnews from LC-25 helpdesk
| Instructor: | Prof. S. Chaiken
LI-67A, 442-4282 sdc@cs.albany.edu |
M, W, F 10:30AM-12:00PM
and by appointment or not busy |
| Teaching Assistant: | Xiaoyu Zheng
LI-96P, 442-4285 xz7223@albany.edu |
Tues, Thurs 12:00PM-2:30PM
and by appointment |
Textbooks:
The 3 main scheduling states of each process: Blocked (aka waiting or sleeping), Running and Ready. Blocked means waiting for some event ot occur, such as input from the terminal becoming available after a read system call is entered. When the interrupt is handled, when the process blocked on the read is changed from the Blocked to the Ready state, when it actually runs (later!).
Review of solution based on "rc" count of active and "wanting" readers. How the writers starve when a succession of readers keep the reading activity active, which means keep rc > 0 Java ReaderWriter class solution pattern from Prof. Doug Lea Slide 1 Slide 2 Slide 3
If you need a dynamically growable data structure, such as a linked list, here is an alternative: Use a extendable array (described on the blackboard). Some old slides with notes about extendable array technique(.ps)