Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Windows Develop Process-Thread
  • Category : Process-Thread
  • Tags :
  • Update : 2012-11-26
  • Size : 2kb
  • Downloaded :0次
  • Author :z***
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
A multi-threaded program using the pthread library. Your assignment is to write a program that emulates a simple terminal handler. The terminal handler process consists of three threads. Thread 1reads characters from input. In the input, some upper case letters represent control characters. Each character read by thread 1 is passed onto thread 2 before another is read. Thread 2 stores the characters as received. However, the following four characters are control characters that ask thread 2 to take action accordingly. B – erase last character from buffer L – insert an end-of-line marker into buffer C – remove contents of buffer U – remove current incomplete line from buffer The third thread, Thread 3, should read complete lines of characters (a line of character is complete, if it has an end-of-line character) from the buffer. Thread 3 should then print this line. Thread 2 should allow access only to completed lines in the buffer. You may assume that a completed line
Packet file list
(Preview for download)
HW3V1.cpp
Hw3SampleInput.txt
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.