⟩ The process which terminates before the parent process exits becomes a) Zombie b) Orphan c) Child d) None of the above
a) Zombie
a) Zombie
The kill system call is used to a) Send shutdown messages to all by superuser b) Send a signal to a process c) Kill processes d) Stop the processes
What is the output of the below code? void sig_handler ( int signum) { printf("Handled the signaln"); } int main() { int pid; signal (SIGKILL, sig_handler); pid = fork(); if (pid==0) { kill(getppid(), SIGKILL); exit(0); } else { sleep(20); } return 0; } a) Error child cannot send a SIGKILL signal to parent. b) Parent goes to the signal handler, prints handled the signal and goes back to sleep c) Parent goes to the signal handler, prints handled the signal and exits d) Parent exits without going to the signal handler
What is the difference between a process task and threads and what are the things that are acquired by the child process from the parent process?
What is the difference between fork() & exec()?
How to get client port number in server socket programming?
What is the difference between socket & port?
Why bind system call is required in socket programming?
What is the difference between a process task and threads?
The directories of /sys directory a) are created at system startup when the subsystems register themselves with object core b) are created when any device is connects with the system c) are created at the time of kernel compilation d) none of the mentioned
The directory /sys/block contains a) sub-directories for each block device b) symbolic link for each block device only c) device file for each block device only d) none of the mentioned