Skip to content

MaimoonaKhilji/Linux-Tasks

Repository files navigation

Linux-Tasks

Task 1: Create a bash function that will take directory name as input from user and will create a new directory. If directory already exists, it will prompt user to enter different name

Task 2: Connect to username: bcs through winSCP and putty. Then create a directory of your own choice and Transfer it from bcs to your own device through WinSCP.

Task 3: Write a C++ code using pthread library that performs the following actions: Take two integer a and b inputs from User. Create four threads:

  • 1st thread will calculate their sum
  • 2nd thread will calculate their difference
  • 3rd thread will calculate their product
  • 4th thread will give their squares Sum, difference, product, squares should be displayed in main method Hint: Use Global declaration of variables for access.

Task 4: Solve Producer and Consumer problem using binary semaphores

Task 5: Solve FCFS Algorithm. Task 6: Solve Priority Based Scheduling Algorithm.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages