Skip to content

Assignment to get familiar with the concepts of threads, mutex locks, semaphores, condition variables and networking

Notifications You must be signed in to change notification settings

akshettrj/multhithreading-and-networking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Operating Systems and Networks

Assignment 5 - README

Name: Akshett Rai Jindal

Roll Number: 2019114001

Concurrency, Parallelism and Networking

Work Done

  • Question 1 - Course Allocation Portal:
    • BONUS
  • Question 2 - The Clasico Experiment:
    • BONUS
  • Question 3 - Multithreaded Client and Server

Directory Structure

./2019114001_assignment_5
├── q1
│  ├── Makefile
│  ├── Question1_Report.pdf
│  ├── run_test.sh
│  ├── src  ------------------------> Contains the code
│  └── tests    --------------------> Contains the test inputs
├── q2
│  ├── Makefile
│  ├── Question2_Report.pdf
│  ├── run_test.sh
│  ├── src  ------------------------> Contains the code
│  └── tests    --------------------> Contains the test inputs
├── q3
│  ├── Makefile
│  ├── Question3_Report.pdf
│  ├── run_test.sh
│  ├── src  ------------------------> Contains the code
│  └── tests    --------------------> Contains the test inputs
└── README.pdf

Running the Code

Question 1

# Compiling the code
$ cd q1
$ make

# This produces the file: ./main

# Running the code
$ ./main

Question 2

# Compiling the code
$ cd q2
$ make

# This produces the file: ./main

# Running the code
$ ./main

Question 3

# Compiling the code
$ cd q3

# Compiling the server
$ make server

# Compiling the client
$ make client

# Compiling both at same time
$ make

# This produces the files: ./server and ./client

# Running the server
$ ./server <num_of_threads_in_pool>

# Running the clients
$ ./client
  • By default it uses the port 6969 to run the server

About

Assignment to get familiar with the concepts of threads, mutex locks, semaphores, condition variables and networking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published