Show Bid Request
This program is to show the use of multithreading and to implement message passing through shared memory
Bid Request Id: 8862
|
|
|
Posted by: |
Shannu (6 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Above Average - 42.86%
|
Buyer Security Verifications: |
Unverified
|
Approved on: |
Feb 15, 2002 12:07:17 AM EDT
|
Bidding Closes: |
Feb 17, 2002 12:12:42 AM EDT
|
Viewed (by coders): |
662 times
|
Deadline: |
2/20/2002
TIME EXPIRED
|
|
|
|
Description:
This program is to show the use of multithreading and to implement message passing through shared memory. The code in each thread that accesses the shared memory is a critical section, and you need to avoid race condition using the pthread library functions - pthread_mutex_lock and pthread_mutex_unlock -
Write a program with three threads - reader, modifier, and printer. The reader thread reads an input file, one character at a time, and passes on the character to the modifier through a common buffer that can hold only one character. The reader should not send another character until the previous character has been taken by the modifier.
The modifier thread receives the character from the common buffer with the reader. If the character is a, it sends the character % to the printer thread. If the character received is b it sends two stars (*) to the printer - one at a time. If the character received is c, then it sends three #&'s to the printer - one at a time. All other characters are sent as they are received. Again the common buffer between the modifier thread and the printer thread can hold only one character, and the same restrictions as above also apply in this case.
Finally, the printer thread prints the character received from the modifier thread - one character at a time.
Use file1 of the previous project as input to this program also.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
"WITH COMMENTS"
Complete copyrights to all work purchased.
Platform:
UNIX
Must be 100% finished and received by buyer on:
Feb 20, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
Dead line is 20th Feb. 1.00 pm US central time.
CODE with COMMENTS.
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$10 (USD)
|
Feb 15, 2002 3:42:49 PM EDT
|
7.14
(Good)
|
|
|
Would be glad to work with you again. You will receive the fully working source code [according to spec] with comments, the executable and the output file before 20th Feb. 1.00 pm US central time.
Thanks
The i2i Team
|
|
|
|
|
|