Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode OS program Linux-Unix
Title: semaphore Download
 Description: The shared memory has three character buffers, which are used to store a small letter, a capital letter, and a digit respectively. These buffers are logically independent. This program have some writer and reader threads. The writer threads are responsible for producing characters into the buffers (the writer should write to the standard output what it just wrote to the buffer), whereas the reader threads consume the characters by printing them out to the standard output. Each time a reader thread consumes a character, it prints out the character followed by a new line character. After creating all the running threads, the original process (in the form of a system-created default thread) idle forever. All the spawned threads should run forever.
 To Search: letter
File list (Check if you may need any files):
osp2\a.out
....\consumer.c
....\consumer.h
....\consumer.o
....\main.c
....\main.o
....\mainproj
....\producer.c
....\producer.o
....\proj2.c
....\ReadMe.txt
osp2
    

CodeBus www.codebus.net