Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSSP Assignments

For all the lazy fellas

Note : All commands are for linux terminal only.

Assignment 1

Shell programming Write a program to implement an address book with options given below: a) Create address book. b) View address book. c) Insert a record. d) Delete a record. e) Modify a record. f) Exit.

Usage

Change permission for the script. Make it executable.

chmod +x addressbook.sh

To run the code :

./addressbook.sh

Assignment 2

The demonstration of FORK, EXECVE and WAIT system calls along with zombie and orphan states. Implement the C program in which main program accepts an integer array. Main program uses the FORK system call to create a new process called a child process.Parent process sorts an integer array and passes the sorted array to child process through the command line arguments of EXECVE system call. The child process uses EXECVE system call to load new program that uses.

Compile main file :

gcc main.c

Compile second file :

gcc -o child.out child.c

-o is used to specify the name for ouput file.

To run the code :

./a.out

Assignment 3

Thread management using pthread library. Implement matrix multiplication using multithreading. Application should have pthread_create, pthread_join, pthread_exit. In the program, every thread must return the value and must be collected in pthread_join in the main function. Final sum of rowcolumn multiplication must be done by main thread (main function).

Compile main file :

gcc tut3.c

To run the code :

./a.out

Assignment 4

Thread management using pthread library. Implement matrix multiplication using multithreading. Application should have pthread_create, pthread_join, pthread_exit. In the program, every thread must return the value and must be collected in pthread_join in the main function. Final sum of rowcolumn multiplication must be done by main thread (main function).

Compile main file :

gcc ipc.c

To run the code :

Create a text file before executing this command

./a.out

Assignment 5

Thread management using pthread library. Implement matrix multiplication using multithreading. Application should have pthread_create, pthread_join, pthread_exit. In the program, every thread must return the value and must be collected in pthread_join in the main function. Final sum of rowcolumn multiplication must be done by main thread (main function).

Compile both files :

gcc client.c -o client
gcc server.c -o server

To run the code :

Create a text file before executing this command

./a.out

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages