MCQs based on Deadlock
Loading…
/**/
Loading…
A common problem that students face is: How to Run Ubuntu within Windows i.e., without installing Ubuntu in dual mode. Windows provide a feature for this. This feature is called “Windows Subsystem for Linux”. By default, this option is disabled in Windows. There are some simple steps to activate this feature. Below is step-wise procedure …
program using shmget() function
The Google Form contains a set of MCQs on Disk Scheduling algorithms (FCFS, SSTF, LOOK and SCAN) for practice. These consist of questions that were asked in previous year UGC-NET exams. Loading… MCQs on Other Related Topics DeadlockMemory ManagementCPU SchedulingProcess Synchronization
write() system call is used to write to a file descriptor. In other words write() can be used to write to any file (all hardware are also referred as file
Program for IPC using named pipes (mkfifo()) The third method for IPC is using mkfifo() function. mkfifo() creates a named pipe which can be used exactly like a file. So, if you know how to read/write in a file this is a convenient method for IPC Syntax: #include<sys/types.h>#include<sys/stat.h>int mkfifo(const char *pathname, mode_t mode); mkfifo() makes …
The second method for IPC is using the pipe() function. Before writing a program for IPC using pipe() function let us first understand its working. Syntax: #include<unistd.h>int pipe(int pipefd[2]); pipe() function creates a unidirectional pipe for IPC. On success it return two file descriptors pipefd[0] and pipefd[1]. pipefd[0] is the reading end of the pipe. …
Program for IPC using pipes
When the disk controller finishes the current request it has to decide which request to process next. The OS can choose one disk scheduling algorithms
Which of the following is not a file allocation strategy?