Skip to content

Instantly share code, notes, and snippets.

@pruet
Created February 13, 2019 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pruet/1ba0863e81a50bd55a728c7151892db2 to your computer and use it in GitHub Desktop.
Save pruet/1ba0863e81a50bd55a728c7151892db2 to your computer and use it in GitHub Desktop.
Requirement:
Extend DNWS to make it supports multi-thread. The server should spawn a thread per connection.
Instruction:
Using your repo that fork from https://github.com/pruet/261433 in HW1
Extend the code, implement the thread mechanism in the code base. See this tutorial for example
After you finish your job, make a pull request with your student ID as pull request comment, then submit this assignment
Grading Objective:
1. Implements multi-thread server (2 pts)
2. A thread per connection (2 pts)
3. The code structure is not changed, e.g., the relationship between main class, DotNetWebServer and HttpProcessor is preserved (2 pts)
4. Threads are tracked, i.e., it's possible to abort any child thread. (2 pts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment