Answer the following problems.
problem 1) In algorithm iput for releasing in _core inode, consider:
i) reference count = 0 and link _count > 0
ii) reference count = 0 and link _count = 0
What would happen in each case?
problem 2) How does wait algorithm respond to the death of child signal?
problem 3) describe the swap out function of a swapper process.
problem 4) What are block and character device switch tables? Which system call is used to create the device file?
problem 5) describe the actions taken by kernel for detaching a region from a process.
problem 6) prepare a program in C in which parent process will prepare into unnamed pipe and child will read from it.
problem 7) What does the following program demonstrate? Describe its working.
# include < signal.h >
main (int argc, char * argv [ ] ) ;
Char buf  ;
if (argc ! = 1)
signal (SIGCLD, SIGIGN)
While ( read (0, buf, 256))
if ( fork ( ) = = 0)
exit (0) ;
problem 8) prepare a program in C to print inode number of every file of a directory. (Accept directory name from user.).