Submission
Due Date
By Friday 1 March 2019 23:42
Directory Hierarchy
Create your git repository (replace john.smith by your own login).
$ git clone git@git.cri.epita.net:p/2022-s4-tp/tp04-john.smith
It must contain the following files and directories:
-
pw_04_multithreaded_server/
- AUTHORS
queue/
- shared_queue.c
- shared_queue.h
- test.c
- Makefile
server/
- shared_queue.c
- shared_queue.h
- main.c
- Makefile
The AUTHORS
file
must contain the following information.
First Name
Family Name
Login
Email Address
The last character of your
AUTHORS
file must be a newline character.
For instance:
$ cat AUTHORS
John
Smith
john.smith
john.smith@epita.fr
$ # Command prompt ready for the next command...
Be careful, if you do not follow all the given instructions, no point will be given to your answers.
Producer-Consumer
For this practical, you will write a multithreaded echo server by using the producer-consumer model.
So you will write an echo server that can handle multiple connexions, but instead of creating multiple processes, you will create multiple threads. Of course, you can use your previous echo server as a model.
For the questions, you will use last year's practical. Be careful, use this year's directory hierarchy (not last year's).