Practical Programming David Bouchet
Practical Work #4

Multithreaded Server

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:

The AUTHORS file must contain the following information.

AUTHORS
First Name
Family Name
Login
Email Address

The last character of your AUTHORS file must be a newline character.

For instance:

AUTHORS
$ 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).

Click here to continue...