hw - Producer/Consumer full r empty r ( ª´ 2 buffer r r...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Producer/Consumer full r empty r ( ª´ 2 buffer r r ,r bufferr ( ª´2 --------------------------------------buffer size = 5 10 r producer r consumer Producer r number buffer r thread 1,producer 2 r Producer 1 push r buffer r 2… Consumer r ª pop ( ´2r * ª´2 r ( pop buffer r 99 Readers-Writers reader ¢ H *ª·ö writer H ·ö ¢ writer, H ·ö ¢ reader writer, ¸ r reader 10 r reader r 3 r writer mail r dreamboat@caig.cs.nctu.edu.tw ...
View Full Document

This note was uploaded on 12/29/2009 for the course INFO ENGI 9801 taught by Professor Wu during the Spring '09 term at 東京国際大学.

Ask a homework question - tutors are online