Skip to content

Hisneha/os-labs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os-labs

all os labs of vip pune

1: Write a shell script to sort an array of numbers using any sort method.

2:Write down Linux commands for following statements: i. Redirect the output of ls command to a file named outfile. Use this asaninput file for remaining commands. ii. To select the lines in a file which has digit as one of the character inthatline and redirect the output to the file named list. iii. Assign execute permission to owner and remove read permissionfromother for an ordinary file named test by relative way. iv. Create an alias named rm that always deletes file interactively. v. Count the currently login users to the system.

3: Write down Linux commands for following statements: i. Redirect the output of cat command to a file named outfile. Use thisasan input file for remaining commands. ii. List all hidden files under current directory and store in “hidden” file iii. Assign write permission to owner and remove execute permissionfromother for an ordinary file named test by absolute way. iv. To create soft and hard link for given file v. To convert lowercase to upper case of a given file vi. To extract 1st and 10th character of a given file vii. To display how many times lines are repeated in a given file

4: Write a program to solve reader-writer problem using Mutex.

5: Write a program to solve producer-consumer problem using semaphore

6: Write a program to solve dining philosopher problem using semaphore

7: Draw the Gantt charts and compute the finish time, turnaround time andwaitingtime for the following algorithms: A. First come First serve B. Shortest Job First (Non Preemptive)

8: Draw the Gantt charts and compute the finish time, turnaround time andwaitingtime for the following algorithms: A. First come First serve B. Round- Robin

9: Draw the Gantt charts and compute the finish time, turnaround time andwaitingtime for the following algorithms: A. First come First serve B. Priority scheduling (Non Preemptive)

10: Write a Shell script to check whether given number is prime or not. Alsoprintthe reverse of the given number.

11: Write a program to solve reader-writer problem using semaphore

12: Write a program to solve producer-consumer problem using Mutex.

13: Write a shell script to check and count occurrence of a sub-string inthe givenstring using command line arguments.

14: Write a program to implement Banker’s algorithm.

15: Draw the Gantt charts and compute the finish time, turnaround time andwaitingtime for the following algorithms: A. First come First serve B. Priority (Non Preemptive)

16: Draw the Gantt charts and compute the finish time, turnaround time andwaitingtime for the following algorithms: A. First come First serve B. Shortest Job First (Non Preemptive)

17: Draw the Gantt charts and compute the finish time, turnaround time andwaitingtime for the following algorithms: A. First come First serve B. Round- Robin

18: Write down Linux commands for following statements: i. To redirect the output of cp command to a file named outfile. Use this as an input file for remaining commands. ii. To select the lines in a file which has 4 letter words in that lineandredirect the output to the file named list. iii. Assign write permission to owner and remove read permissionfromgroup user for an ordinary file named test by relative way. iv. Create an alias named ls that always lists all the files includinghiddenfiles. v. Count the number of words in the list file.

19: Write down Linux commands for following statements: a. Redirect the output of mv command to a file named outfile. Use this as an input file for remaining commands. b. List all hidden files under current directory and store in “hidden”file c. Assign write permission to group user and remove execute permission from owner for an ordinary file named test by absolute way d. To create soft and hard link for given file e. To convert lowercase to upper case of a given file f. To extract 2nd and 3rd character of a given file g. To display how many times lines are repeated in a given file

20: Write a Shell script to check whether given number is palindrome or not. Alsoprint the reverse of the given number.

21: Write a Shell script to find the Factorial of given number using RecurrenceMethod and Without Recurrence Method (Both way).

22: Write a Shell script to check whether given number is palindrome or not. Alsoprint the reverse of the given number.

23: Write a Program to Implement Page Replacement AlgorithmUsing: A. First Come First Serve B. Least Recently Used

24: Write a Program to Implement Page Replacement AlgorithmUsing: A. First Come First Serve B. Not Recently Used

25: Write a program to implement Banker’s algorithm.

About

all os labs of vip pune

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 79.0%
  • Roff 8.8%
  • Shell 8.0%
  • C 4.2%