Computer Science
Study Material For BSc(CS) students.
Home
B.Sc.(CS)
F.Y.B.Sc(CS)
Problem Solving using Computer and ‘C’ Programming
S.Y.B.Sc(CS)
Data Structures and Algorithms I
Notes
Lab Assignments
Data Structures and Algorithms II
Notes
Lab Assignments
T.Y.B.Sc(CS)
Operating System I
Notes
Lab Assignments
Operating System II
Notes
Lab Assignments
M.Sc.(CA)
F.Y.M.Sc(CA)
Operating System
Notes
S.Y.M.ScCA)
Python Programming
Notes
Lab Assignments
Downloads
Syllabus
MCQs
Practice Tests
OS
Wednesday, 26 January 2022
OS-(I) Assignment 1: Operations on Processes
January 26, 2022
OS LAB(I)
No comments
Set A.
(1) Implement the C Program to create a child process using fork(), display parent and child process id. Child process will display the message “I am Child Process” and the parent process should display “I am Parent Process”.
(2) Write a program that demonstrates the use of nice() system call. After a child process is started using fork(), assign higher priority to the child using nice() system call.
Set B.
(1) Implement the C program to accept n integers to be sorted. Main function creates child process using fork system call. Parent process sorts the integers using bubble sort and waits for child process using wait system call. Child process sorts the integers using insertion sort.
(2) Write a C program to illustrate the concept of orphan process. Parent process creates a child and terminates before child has finished its task. So child process becomes orphan process. (Use fork(), sleep(), getpid(), getppid()).
Email This
BlogThis!
Share to X
Share to Facebook
Newer Post
Older Post
Home
0 Comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Popular
Tags
Blog Archives
Followers
ABOUT
Rahul Sonawane
Nashik, Maharashtra, India
Qualification: M.Tech (IMCA), NET, SET
View my complete profile
Popular Posts
Powered by
Blogger
.
Wikipedia
Search results
Blog Archive
March
(1)
January
(1)
January
(5)
June
(13)
April
(3)
March
(2)
February
(1)
November
(1)
October
(3)
0 Comments:
Post a Comment