Professional Documents
Culture Documents
Course Outcomes:
CO4: Explain UNIX process, IPC and signals.
Cognitive Level: R- Remember, U-Understand, A- Analyze, Ap-Apply
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