mark-wiemer / os-synchronization

Implementing synchronization in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS Project 2: Synchronization

An introduction to multi-threaded code in C. Uses the pthread library to run 4 additional threads that communicate via queues.

  1. Reader parses input into individual words and sends the strings to Munch1
  2. Munch1 converts each lowercase character into its uppercase complement and sends the string to Munch2
  3. Munch2 converts each space into an * (asterisk) and sends the string to Writer
  4. Writer outputs the string to stdout.
  5. At the end, Main outputs statistics about the queues.

About

Implementing synchronization in C


Languages

Language:C 81.1%Language:Makefile 14.4%Language:C++ 4.4%