Professional Documents
Culture Documents
i. Write a program to show the execution of fork() system call in respect to parent and child
processes.
ii. Write a Program for showing the choice of child process and then parent process using
loop.
iii. Write a program to call a function from the main function. Note: the called function contain
a single fork(). Explain the output
iv. Write a Program to show the execution of Parent process until the Child process complete
its execution
v. Write a Program to show the execution of Parent process until the Child process complete
its execution. Print process ids to check.
Write a program (Algorithm / Steps) to implement the following process scheduling algorithms
SAMPLE:
Step 7: Calculate
(c) Average waiting time = Total waiting Time / Number of process
(d) Average Turnaround time = Total Turnaround Time / Number of
process
Valid output:
……..
Invalid output:
……..
NOTE: Take appropriate burst time, priority queue info, time quantum etc. as input and
compute Average Waiting Time, Average Turn Around Time as Output
i. Write a program to implement the Producer Consumer problem using Semaphore. Show the
Programming steps, input and output parameters
ii. Show the programming steps (Only the Algorithm) to implement the Dining Philosopher’s
Problem
i. Using suitable example list the details about following linux commands
ls , cat, head, tail, chmod, chown, grep, wc, gunzip, diff, sort, uniq
SAMPLE
chgrp
is used to Change the Group Ownership:
ii. Write a Shell Script to find out the biggest number in 3 numbers – If – elif block
SAMPLE
ALGORTHIM :
Enter A: GEC
Enter B: 45
Enter C: 67
Invalid Output:
iii. Write a Shell Script to perform the Arithmetic Operations (summation, subtraction,
multiplication and division) of two numbers – using Switch
iv. Write a Shell Script to print the Pascal triangle – using for loop
GENERAL INSTRUCTIONS:
1. Handwritten practical Lab copy book is preferred. However, students can submit the printed
version in a channel file. The index page (contains the list of programs) at the beginning is highly
recommended.
2. The programming steps (Algorithm), Input, and Output can be included (see the sample
programs). Line by line code is not required
3. If completely identical lab copies are found, the marks will be deducted for all such students
4. Submission date: During the lab exam date and time
5. During the practical Evaluation session one or two similar program can be asked to implement
and show the output (Module I to Module IV)
6. Viva questions will be based on theoretical knowledge and programming skill from each module.