Recent questions tagged system-call

200
views
0 answers
0 votes
Please list out the best free available video playlist for System Calls from Operating systems as an answer here (only one playlist per answer). We'll then ... to be selected as best.For the full list of selected videos please see here
1.7k
views
1 answers
1 votes
Consider a process P running on a system with non-preemptive Kernel design. Consider following actions by P :(i) A blocking system call.(ii) Servicing a timer ... as ready.Which of the above actions always result in context-switch of P?
551
views
1 answers
0 votes
what is seek system call? can anyone explain?
11.2k
views
4 answers
18 votes
Which of the following standard $C$ library functions will always invoke a system call when executed from a single-threaded process in a $\text{UNIX/Linux}$ operating system?$\textsf{exit}$\textsf{malloc}$\textsf{sleep}$\textsf{strlen}$
2.7k
views
2 answers
3 votes
Assuming that the system call $\text{fork}()$ never fails, consider the following C program $P1$ and $P2$ ... but Statement $II$ is falseStatement $I$ is incorrect but Statement $II$ is true
1.6k
views
2 answers
0 votes
How many times the word "PROCESS" will be printed when executing the following program ?main(){ printf("PROCESS"); fflush(); fork(); fork(); }$8$4$6$7$
265
views
0 answers
0 votes
In UNIX and Windows, random access is done by having a special system call that moves the current position'' pointer associated with a file to a ... file. Propose an alternative way to do random access without having this system call.
2.0k
views
1 answers
2 votes
When an interrupt or a system call transfers control to the operating system, a kernel stack area separate from the stack of the interrupted process is generally used. Why?
700
views
0 answers
0 votes
Figure $1-23$ shows that a number of UNIX system calls have no Win32 API equivalents. For each of the calls listed as having no Win32 equivalent, what are the consequences for a programmer of converting a UNIX program to run under Windows?
247
views
0 answers
0 votes
To a programmer, a system call looks like any other call to a library procedure. Is it important that a programmer know which library procedures result in system calls? Under what circumstances and why?
721
views
0 answers
2 votes
A file whose file descriptor is fd contains the following sequence of bytes$: 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5.$ The following system calls are made: ... a seek to byte $3$ of the file. What does buffer contain after the read has completed?
263
views
0 answers
0 votes
For each of the following system calls, give a condition that causes it to fail: fork, exec, and unlink.
334
views
0 answers
0 votes
When a user program makes a system call to read or write a disk file, it provides an indication of which file it wants, a pointer to the data buffer ... to the disk? Need the caller be blocked awaiting completion of the disk transfer?
254
views
0 answers
0 votes
Assume that a file is written using write $\text{(fd, buf, K)}$ system call, where $\text{fd}$ is the file descriptor and $\text{K}$ is the number of bytes to be written ... least $\text{K/D}$is equal to $\text{K/D}$is at most $\text{K/D}$
421
views
1 answers
0 votes
Consider the following program.#include<stdio.h> #include<stdlib.h> #include<unistd.h> int main(void) { pid_t pid; int varl = 100; pid = fork(); if(pid == 0) /* ... $100 \; 200 \; 200 \; 200$
290
views
0 answers
0 votes
Consider the following statements regarding interrupts.If a process is interrupted during system call handling then the $\text{OS}$ will crash.If a process is interrupted during system ... $\text{III}$ $\text{I}$ and $\text{III}$
1.1k
views
2 answers
1 votes
Match the following WINDOWS system calls and UNIX system calls with reference to process control and File manipulation. ...
1.0k
views
3 answers
2 votes
To see more, click for the full list of questions or popular tags.