Skip to content

Client-server application for executing jobs via IPC (named pipes), extended into a multithreaded network-based version with socket communication and thread pool support.

Notifications You must be signed in to change notification settings

sulpap/System-Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This repository consists of two projects:

  1. jobs_management
  2. multithread_network (vrs 1 and 2)

jobs_management

Jobs_management is a client-server program, where the client (commander) and the server (executor) communicate via named pipes. It undertakes the execution of tasks received from an input file.

To run:

make

cd bin

./jobCommander <command_name> <arguments>

multithread_network

Multithread_network is a multithreaded network application, an extension of jobs_management. The second version only has different directory structure.

To run (open at least 2 terminals):

  • Terminal 1:
make

cd bin

./jobExecutorServer [portNum] [bufferSize] [threadPoolSize]

(ex ./jobExecutorServer 7856 5 8)
  • Terminal 2(+):
cd bin

./jobCommander [serverName] [portNum] [jobCommanderInputCommand]

(ex ./jobCommander linux18 7856 issueJob ./progDelay 15)

About

Client-server application for executing jobs via IPC (named pipes), extended into a multithreaded network-based version with socket communication and thread pool support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published