Skip to content

muazra/Serve

Repository files navigation

Setup

  1. Run "make" from terminal to initialize.
  2. Run "./server port# option#" to use.

Details

Request Types:

0: serve only a single request
1: use only a single thread for multiple requests
2: use fork to create process for each request
4: create new thread for each request
5: use atomic instructions to implement task queue
6: use a thread pool to serve requests
7: use a thread pool w/ blocking conditions via ring buffer
8: serve requests using char device - done in kernel mode

SERVER_TYPE_ONE = 0,
SERVER_TYPE_SINGLET = 1,
SERVER_TYPE_PROCESS = 2,
SERVER_TYPE_FORK_EXEC,
SERVER_TYPE_SPAWN_THREAD = 4,
SERVER_TYPE_TASK_QUEUE = 5,
SERVER_TYPE_THREAD_POOL = 6,
SERVER_TYPE_THREAD_POOL_BLOCKING = 7,
SERVER_TYPE_CHAR_DEVICE_QUEUE = 8,

About

Multi-threaded web-server written for the Linux kernel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages