You are on page 1of 3

MC1642 - UNIX Internals

III YEAR, V SEMESTER MC1642-UNIX INTERNALS QUESTION BANK


PART A 1. What are the time values maintained by the Unix systems? 2. What are the differences between System calls and library functions? 3. What is POSIX? 4. What is SVR4? 5. What are file descriptors? 6. How can you achieve atomicity in appending and creating a file? 7. What are dup() and dup2() functions ? 8. What is the use of fcntl() function ? 9. State the prototype and the use of ioctl() function. 10. How will you retrieve the properties of a file ? 11. Give the use of access function. 12. State the need for umask function. 13. Why do we nee chmod and fchmod functions? 14. What is sticky bit? 15. How will you change the user Id of a file ? 16. What is meant by hole in a file? 17. How can you truncate the contents of a file ? 18. What are symbolic links ? How is it different from hard links? 19. How will you create and remove links using C functions 20. What are the times fields maintained for a any file 21. What is the use of utime function? 22. What is the use of sync() and fsync() functions ? 23. What are streams and FILE objects ? 24. What are the contents of password file? 25. Give the prototype and the meaning of the main() function. 26. What are the various ways for process termination 27. What are the functions allocated for ANSI C for memory allocation ? 28. How to get and set environment variables in C? 29. What is the use of setjmp and longjmp functions? 30. Give the prototype and mention the uses of getrlimit() and setrlimit() functions . 31. What is the use of fork() function ? 32. Differentiate between fork() and vfork(). 33. What are orphan and zombie processes ? 34. What is race condition? 35. How can you change the user ID ? 36. What are interpreter file ? D Sophia Solomon Page 1

MC1642 - UNIX Internals 37. State the use of System function. 38. How is process accounting done in UNIX? 39. How is user identification done in UNIX? 40. What are process groups and sessions? 41. What is job control? 42. What are signals? 43. What are signal handlers? 44. What happens to interrupted system calls ? 45. What is the use of kill and raise functions ? 46. What are alarm and pause fuinctions ? 47. What are the uses of abort and sleep function? 48. What are the limitations of pipes 49. Compare pipes with other methods of interprocess communication 50. What are mutexes ? Give its role in interprocess communication. 51. What are daemon processes? How are they started? 52. What is the problem with system V IPC? 53. What is the use of popen() and pclose() functions? How is it different from pipes() functions? 54. What are iterative and concurrent servers? 55. What are the different ways for synchronization? 56. What are the differences between advisory and mandatory locking 57. What is a binary semaphore? 58. Draw a block diagram to explain the movement of data between the client and server using shared memory . 59. What is use of ICMP packet ? 60. What is the use of ping command ? 61. What is meant of port? 62. What is I/O multiplexing 63. What are the steps in creating a raw socket? 64. State any generic socket options 65. Define socket. How to use trace route for networking programming 66. What are the functions of echo server ? 67. What are the features of raw sockets 68. A ping program has a d flag to enable SO_debug socket option. What does this do ? 69. Give the syntax of accept system call 70. How to check availability of a host in a network? 71. What ICMP messages are used by traceroute tool? What is the use of REUSEADDR socket option? 72. What system call is used by a server to indicate that it is willing to receive the connections

PART B 1. Write briefly about file I/O Operations

D Sophia Solomon

Page 2

MC1642 - UNIX Internals 2. What are the data structures used for File sharing in UNIX? Explain with a neat diagram 3. Briefly write notes on the various types of files in UNIX. 4. Write short notes on file access permission and its effect on files and directories. 5. With neat diagram explain the file system of UNIX. 6. What the function used to create, modify and red directories? 7. Briefly explain the Standard I/O Library functions. 8. How is data protected in UNIX? Illustrate chmod and chown with examples 9. Give the memory layout of C program. 10. Discuss the set of stated a process undergoes during its lifetime 11. Illustrate any 3 situations where the kernel saves the context of a process. 12. Write short notes on the following functions a. Wait() b. Waitpid() c. Wait3() d. Wait4() 13. Give the prototype and explain the various exec functions. 14. Explain the processes involved in terminal and network login in SVR4 15. write short notes on a. create signal sets b. add and delete contents from signalset c. sigprocmask() d. sigpending() e. sigaction() f. sigsuspend() 16. Write a simple program to explain pipes and fifos. 17. What are Read-Write locks? 18. Discuss all SV IPC system calls and its structure . 19. Explain how the multiple process multiplex message onto a single queue with an example client server program . 20. How can you achieve record locking? Explain with example. 21. Explain the basic thread functions. 22. Write short notes on mutexes and condition variables 23. How will you create and remove message queues? Explain with an example the interprocess communication using message queues. 24. List and Exaplin similar features of System V IPC 25. Give the format of the structure assigned for the shred memory segment . Explain he functions required to access the shred memory. 26. What feature is missing in POSIX message queues? 27. How does POSIX version of shared memory differ from that is System V

D Sophia Solomon

Page 3

You might also like