Visvesvaraya Technological University - VTU
B.E./B.Tech. DEGREE EXAMINATION
10CS62 Unix System Programming
10CS62 Unix System Programming
Sixth Semester - 6th
Computer Science Engineering - CSE
(Common to Information Science Engineering)
University Papers | Syllabus | Entrance Exam | Govt & PSU Papers | Bank Papers
Programming Questions | Travel Tips | Mobile Review | Placement Papers | Books
VTU SYLLABUS: CLICK HERE
OTHER DEPARTMENT PAPERS: CLICK HERE
Download PDF File - Click Here
For More Question paper of CSE - CLICK HERE
For more question paper of ISE - CLICK HERE
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?
Unit 2 : UNIX Files
11.Explain the different file types available in UNIX or POSIX system.
12.Describe the UNIX Kernel support for files
13.What is an API? How is it different from c library functions?
14.What are APIs? When do you use them? Why are the APIs more time consuming than the library function?
15.List all the file attributes along with their meanings. Which of these attributes can‟t be
changed and why? List the commands needed to change the following file attributes. i) filesize;ii) User ID; iii) Last access and modification time; iv) hard link count.
16.What is an inode? Why are the inodes unique only within a file system? How does OS map
the inode to its filename? Bring out the four important differences between soft and hardlinks
17.Explain the difference between the stream pointer and file descriptor?
18.What is a directory file?
19.What is hard and symbolic links?
20.Explain the sequence of events that occur when a process calls the close function to close an opened file?
Unit 3 : UNIX File APIs
21.List and explain the access mode flags and access modifier flags. Also explain how the
permission value specified in an „open‟ call is modified by its calling process „umask‟ value.
22.Explain how fcntl API is used for file and record locking.
23.Write a program to implement ls –l command
24.List the structure used to query the file attributes in Unix. Write a program in c++ to list the
following file attributes of a given regular file passed as command line argument i) file type
ii)hard link count iii)file size iv)file name
25.Write a c++ program tocheck whether the close – on – exec flag is set for a given file. If it is not set, use fcntl to set thisflag. Also show the implementation of dups macro using this API.
26.List the important uses of fcnt API. Give its prototype description
27.Explain file and record locking?
28.Explain directory file and device file APIs?
29.Explain general file class and regfile class?
30.Explain FIFO and device file class?
Unit 4 : UNIX Processes
31.Write an explanatory note on environment variables. Also write a C/C++ program that
Outputs the contents of its environment list.
32.With an example explain the use of setjmp and longjmp functions
33.Describe the UNIX Kernel support for process. Show the related data structures
34.Bring out the importance of locking files. What is the drawback of advisory lock? Explain in brief.
35.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.
36.With a neat diagram, explain the memory layout of c program. In which segments are the
automatic variables and dynamically created objects are stored?
37.Write a short note on command-line arguments?
38.Explain the three functions for memory allocation and alternate memory allocators?
39.Explain getrlimit and setrlimit functions?
40.Explain the data structure of parent and child processes after fork?
Unit 5 : Process Control
41.Explain the following system calls: i)fork ii)vfork iii)exit iv)wait.
42.Giving the prototype explain different variant of exec system call
43.What is race condition? Write a program in C/C++ to illustrate a race condition.
44.How UNIX operating system keeps process accounting?
45.What is job control? Summarize the job control features with the help of a figure.
46.With a neat block schematic, explain the terminal login process in BSD Unix. What is a session? Explain how you create a session using appropriate shell commands.
47.Explain the following:i)wait ii)waitpid
48.Explain the following:i)waited ii)wait3 iii)wait4
49.Explain Network Logins? Explain sequence of processes involved in executing TELNET server?
50.Explain how the shells execute programs?
Unit 6 : Signals and Daemon Processes
51.What is a signal? Discuss any five POSIX defined signals?
52.What is a daemon? Discuss the basic coding rules.
53.Explain the terms i)signal ii)signal mask
54.What are daemon processes? Enlist their characteristics. Also write a program to
transform a normal user process into a daemon process. Explain every step in the program.
55.Explain the sigaction() function by giving the prototype and discuss its features?
56.Briefly explain the kill() API and alarm() API?
57.List the timer manipulation APIs in POSIX.1b
58.What is error logging?with a neat block schematic discuss the error login facility in BSD.
59.Briefly explain SIGCHLD Signal and the waitpid API?
60.Discuss daemon characteristics?
Unit 7 : Interprocess Communication – 1
61.What are pipes? What are their limitations? Write a c program that sends “hello world” message to the child process through the pipe. The child on receiving this message should display it on the standard output.
62.With a neat block schematic, explain how FIFO can be used to implement client-server communication model.
63.What are the three different ways in which the client and server processes are can get
access to same IPC structures? List the APIs with their argument details that are used to create, control, send and receive messages from a message queue.
64.What are semaphores? What is their purpose? List and explain the APIs used to create and control the semaphores.
65.What are the different system calls available to create and manipulate semaphores?Explain.
66.Write a short note on message queues?
67.Explain different APIs used with message queues?
68.Discuss the applications of FIFO
69.What are the advantages and disadvantages of XSI IPC?
70.Explain timing comparison of semaphores versus record locking?
Search Related to 10CS62 Unix System Programming
VTU BE syllabus 6th semester for 2010 Scheme
VTU Question Papers 6th semester
VTU Question Paper for sixth
Question Papers for CSE ISE VTU
10CS62 Unix System Programming vtu question papers
10CS62 Unix System Programming vtu notes
10CS62 Unix System Programming vtu syllabus
10CS62 Unix System Programming vtu notes 6th sem
10CS62 Unix System Programming notes vtu 6th sem ece