Beruflich Dokumente
Kultur Dokumente
ASSIGNMENT QUESTIONS
UNIT 1 Introduction
1. What is posix standard? Explain the different subset of posix standard.
2. Explain the common characteristics of API and describe the error status codes
3. List the differences between ANSI C and K & R C. Explain
4. Explain any five error status code for error no.
5. List the difference between ANSI C and C++
6. Write a program c or c++ posix complement program to check following limits:
i)number of clock ticks
ii)Maximum number of child processes
iii)Maximum path length
7. Write a c++ program to list the actual values of the following system configuration
limits
on a given unix OS.
i) Maximum no. of child processes that can be created.
ii) Maximum no. of files that can be opened simultaneously.
iii) Maximum no. of message queues that can be accessed.
8. Write structure of program to filter out non-posix compliant codes from user program
9. Explain POSIX Feature Test Macros?
10. Explain the POSIX.1 FIPS standards?
Page 1
the inode to its filename? Bring out the four important differences between soft and
hardlinks
7. Explain the difference between the stream pointer and file descriptor?
8. What is a directory file?
9. What is hard and symbolic links?
10. Explain the sequence of events that occur when a process calls the close function to
close an opened file?
Page 2
1. Write an explanatory note on environment variables. Also write a C/C++ program that
Outputs the contents of its environment list.
2. With an example explain the use of setjmp and longjmp functions
3. Describe the UNIX Kernel support for process. Show the related data structures
4. Bring out the importance of locking files. What is the drawback of advisory lock?
Explain in brief.
5. What are the different ways in which a process can terminate? With a neat block
schematic, explain how a process is launched and terminates clearly indicating the
role of C-startup routine and the exit handlers.
6. With a neat diagram, explain the memory layout of c program. In which segments are
the
automatic variables and dynamically created objects are stored?
7. Write a short note on command-line arguments?
8. Explain the three functions for memory allocation and alternate memory allocators?
9. Explain getrlimit and setrlimit functions?
10. Explain the data structure of parent and child processes after fork?
Page 3
Page 4
5. What are the different system calls available to create and manipulate semaphores?
Explain.
6. Write a short note on message queues?
7. Explain different APIs used with message queues?
8. Discuss the applications of FIFO
9. What are the advantages and disadvantages of XSI IPC?
10. Explain timing comparison of semaphores versus record locking?
ii) shmctl( ).
2. What are stream pipes? Write a program to drive the add2 filter using stream pipe.
3. Explain the concept of shared memory with an example C/C++ program.
4. What do you mean by passing file descriptors between processes? Explain.
Page 5