Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 691 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 691 Bytes

Multithreading Examples

To compile and run any file execute the following command:

 gcc <filename>.c -lpthread
 ./a.out

For detailed explanation of implementation of all these codes please refer to the ReportDocs.pdf

qsort.c:

Implementation of the quick sort algorithm in 3 ways: normally, using processes, and using threads. Runtime of all these methods are compared for the given input.

MessAllocation.c:

A system that simulates chefs cooking biryani and serving to tables which in turn serve students arriving at random times.

CabBooking.c:

A a system that simulates booking of two types of cabs, pool and premier. Also implemented timed wait and payment servers.