You are on page 1of 2

USN 1 D T C S

DAYANANDA SAGAR ACADEMY OF TECHNOLOGY AND MANAGEMENT


(Affliated to Visvesvaraya Technological University , Belagavi & Approved by AICTE, New Delhi)
22 Mile, B.M Kaval, Opp. to Art of LivingUdayapura, Kanakapura Road, Bangalore-560082.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING.
Accredited by NBA for 3 years(26-7-18 to 30-6-2021),NewDelhi

Odd Semester Session (2020-2021)


Third Assignment, November-2020
Subject: Unix Programming Subject Code: 18CS56
Class: V Sem A & B sec Date:
Duration: 1 ½ Hrs Max Marks: 50
Faculty: Shilpa M, Jahanvi S

Course Outcomes:
CO4: Explain UNIX process, IPC and signals.
Cognitive Level: R- Remember, U-Understand, A- Analyze, Ap-Apply

Note: Answer all 5 full questions

Cogni Course
Q.
Question tive Marks Outcom
No.
Level es
R 10 CO4
1. List the API along with their argument details that are used to create,
control, send and receive messages from a message queue?
What are pipes? What are their limitations? Write a C program that
sends “Hello world” message to the child process through the pipe. Ap 10 CO4
2.
The child on receiving this message should display the standard
output?
What are semaphores? What are their purposes? List and explain the U 10 CO4
3.
API used to create and control the semaphores?
What is FIFO? Explain how it is used in IPC. Discuss with an Ap 10 CO4
4.
example, the client-server communication using FIFO?

U 10 CO4
5. Explain shared memory as an IPC mechanism

Explain popen and pclose function with prototypes and write a U 10 CO4
6.
program to demonstrate popen and pclose function?

What are signals? Mention the different sources of signals. What are
the three dispositions the process has when signals occur? List any Ap 10 CO4
7.
four signals along with one or two line explanation. Write a program
to setup signals handlers for SIGINT and SIGALARM signals.
What are daemon processes? Enlist their characteristics. Also write a
Ap 10 CO4
8. program to transform a normal user process into a daemon process.
Explain every step in the program. Discuss the basic coding rules
What is the use of the alarm API? Give the prototype of alarm API. U 10 CO4
9.
How can the alarm API be used to implement the sleep API?

Explain the following APIs related to signals with their prototypes: U 10 CO4
10.
Sigprocmask, Sigaction, Sigsetjmp and Kill.

R 10 CO4
11. List the timer manipulation APIs in POSIC.1b.

U 10 CO4
12. With neat diagram, explain the method of error logging

**********************All the Best************************

You might also like