Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Operating System
Recent questions tagged operating-system
2
votes
1
answer
2581
Os+file system
Rahul Jain25
831
views
Rahul Jain25
asked
Oct 25, 2016
Operating System
operating-system
file-system
+
–
2
votes
2
answers
2582
Self Doubt
Q : In variable allocation without compaction strategy of memory allocation , can we allocate the memory space to a process arbitrarily anywhere within the free space..I have a doubt on this since the allocation should comply with the standard methods like best ... I m facing this doubt on the question having link : https://gateoverflow.in/2747/gate1996_2-18 Plz explain someone..
Q : In variable allocation without compaction strategy of memory allocation , can we allocate the memory space to a process arbitrarily anywhere within the free space..I ...
Habibkhan
1.1k
views
Habibkhan
asked
Oct 25, 2016
Operating System
operating-system
variable-partition
memory-management
+
–
1
votes
1
answer
2583
Os+ disk+ntpel question
Disk cache have cache access not in heiracrchially manner by default?? I am getting 76 as answer
Disk cache have cache access not in heiracrchially manner by default?? I am getting 76 as answer
Rahul Jain25
497
views
Rahul Jain25
asked
Oct 25, 2016
Operating System
operating-system
memory-management
disk
+
–
0
votes
1
answer
2584
Self Doubt
Can someone make me clear whether segmentation method of memory allocation is free from internal and external fragmentation.? Also plz give valid explanation in support of your answer.
Can someone make me clear whether segmentation method of memory allocation is free from internal and external fragmentation.? Also plz give valid explanation in support o...
Habibkhan
677
views
Habibkhan
asked
Oct 25, 2016
Operating System
segmentation
operating-system
memory-management
+
–
0
votes
0
answers
2585
Can any one provide a chart of comparison of various cpu scheuling algorithms in operating system?
sidlewis
258
views
sidlewis
asked
Oct 25, 2016
Operating System
operating-system
cpu
+
–
2
votes
0
answers
2586
fork() system call
int main(void) { if(fork() && fork()) { fork(); } if(fork() || fork()) { fork(); fork(); } printf("\nGate 2017\n"); } How many times "Gate 2017" will be printed?
int main(void) { if(fork() && fork()) { fork(); } if(fork() || fork()) { fork(); fork(); } printf("\nGate 2017\n"); }How many times "Gate 2017" will be printed?
dd
1.3k
views
dd
asked
Oct 24, 2016
Operating System
operating-system
fork-system-call
+
–
2
votes
0
answers
2587
fork() system call
for(i=1;i<=3;i++) { fork(); printf("x"); } How many times 'x' is printed ?
for(i=1;i<=3;i++) { fork(); printf("x"); }How many times 'x' is printed ?
dd
1.1k
views
dd
asked
Oct 24, 2016
Operating System
operating-system
fork-system-call
+
–
3
votes
3
answers
2588
Operating system Made Easy Test series problem: fork Problem
I always face problem in fork questions please explain in detail (with theory). Thanks
I always face problem in fork questions please explain in detail (with theory). Thanks
Devwritt
3.6k
views
Devwritt
asked
Oct 23, 2016
Operating System
operating-system
fork-system-call
made-easy-test-series
test-series
+
–
0
votes
1
answer
2589
Doubt
which of the following are private specific to thread? a) pc b) stac pointer c) execution stack d) memory
which of the following are private specific to thread?a) pcb) stac pointerc) execution stackd) memory
cse7
226
views
cse7
asked
Oct 22, 2016
Operating System
operating-system
+
–
1
votes
1
answer
2590
Doubt
Only one of the following is initiated by the user program all other are initiated by external entities: a) transition from ready state to running state b) transition from running state to ready state c) transition from running state to block state d) transition from block state to ready state I guess answer should be D. Please confirm
Only one of the following is initiated by the user program all other are initiated by external entities:a) transition from ready state to running stateb) transition from ...
cse7
2.7k
views
cse7
asked
Oct 22, 2016
Operating System
operating-system
+
–
1
votes
0
answers
2591
does operating system always runs in privileged mode
does operating system always runs in privileged mode or is there any other way also?
does operating system always runs in privileged mode or is there any other way also?
cse7
584
views
cse7
asked
Oct 22, 2016
Operating System
operating-system
+
–
0
votes
1
answer
2592
Which of the following statements is/are true?
The Operations P(S) & V(S) needs to be atomic. A process exiting the CS will call V(S) Busy-Wait' solutions to the Critical Section are typically implemented using machine instructions that execute in the Kernel mode All of ... the above process to enter the critical section) will never be able to run. Are my points incorrect? Please advice.
The Operations P(S) & V(S) needs to be atomic.A process exiting the CS will call V(S)‘Busy-Wait’ solutions to the Critical Section are typically implemented using mac...
rickeshjohn
3.3k
views
rickeshjohn
asked
Oct 22, 2016
Operating System
process-synchronization
operating-system
test-series
+
–
1
votes
1
answer
2593
Ace Test Series: Operating System - Process
Which of the following information is not a part of process control block? a) CPU scheduling information b) CPU-stack pointer values c) CPU-timer information d) CPU- accumulator interrupt
Which of the following information is not a part of process control block?a) CPU scheduling informationb) CPU-stack pointer valuesc) CPU-timer informationd) CPU- accumula...
diksha kahensa
1.5k
views
diksha kahensa
asked
Oct 20, 2016
Operating System
ace-test-series
operating-system
process
+
–
0
votes
0
answers
2594
madeeasy testseries
consider the following pseudo code main() { int t1=0,t2=0,t3=0; t1=fork(); t2=fork(); if(t1!=0) { t3=fork(); printf("0"); } } The total number of processes that will be created by the above program execution are__
consider the following pseudo codemain(){int t1=0,t2=0,t3=0;t1=fork();t2=fork();if(t1!=0){ t3=fork();printf("0");}}The total number of processes that will be created by t...
gautamcse27
338
views
gautamcse27
asked
Oct 18, 2016
Operating System
operating-system
+
–
0
votes
2
answers
2595
Doubt
Consider a system having 4K entries. LA = 29 bits. Calculate page size(PS)? Solution: I know that , PS = LAS/No. of pages ...............so, PS = 2^29 (bits)/2^12 = 2^17 KB How it comes as KB. I guess it should be 2^14 KB( dividing by 8 to convert it in bytes) Please tell me whether conversion is required or not. In some places i see the conversion and some places no conversion.
Consider a system having 4K entries. LA = 29 bits. Calculate page size(PS)?Solution: I know that ,PS = LAS/No. of pages ...............so,PS = 2^29 (bits)/2^12 = 2^17 KBH...
cse7
2.4k
views
cse7
asked
Oct 18, 2016
Operating System
operating-system
+
–
1
votes
2
answers
2596
Operating System
Which of the scheduling alogorithm gives the best throughput for n tasks having r1,r2,...,rn as running time? a) RR b) ShortestJob First c) FCFS d) Hiighest-Response Ration Next
Which of the scheduling alogorithm gives the best throughput for n tasks having r1,r2,...,rn as running time?a) RRb) ShortestJob Firstc) FCFSd) Hiighest-Response Ration N...
cse7
450
views
cse7
asked
Oct 17, 2016
Operating System
operating-system
+
–
6
votes
3
answers
2597
Operating System
Consider a paging system which stores its two-level page table in memory and its 16 most recently referenced entries in a TLB. If, a memory access takes 80 nsec, a TLB lookup takes 20 nsec and a page swap time takes 5000 nsec, how long does a data item take to access if the TLB hit rate is 95% and the page fault rate is 10% ?
Consider a paging system which stores its two-level page table in memory and its 16 most recently referenced entries in a TLB. If, a memory access takes 80 nsec, a TLB lo...
srestha
3.9k
views
srestha
asked
Oct 17, 2016
Operating System
operating-system
+
–
0
votes
1
answer
2598
System Call
What is system call? Why is it not done in previledge mode?
What is system call? Why is it not done in previledge mode?
srestha
1.9k
views
srestha
asked
Oct 17, 2016
Operating System
operating-system
+
–
0
votes
1
answer
2599
Operating system
Consider a system using 2 level paging applicable. the full page is divided into 2K pages. Each page is having 4K entries. PAS is 64MW whish is divided into 16K frames. the main m/m is word addressable. Page table entry size in both level is 2 words. calculate (a) LA (b) PA (c) first level paging Table size. (d) second level paging table size
Consider a system using 2 level paging applicable. the full page is divided into 2K pages. Each page is having 4K entries. PAS is 64MW whish is divided into 16K frames. t...
cse7
688
views
cse7
asked
Oct 17, 2016
Operating System
operating-system
memory-management
+
–
3
votes
2
answers
2600
Self Doubt
Q : Each process Pi , i = 1 to 9 executes the following code : while (TRUE) { P(mutex); Critical section ; V(mutex); } The process P10 executes the following code : while(TRUE) { V(mutex); critical section ; P(mutex); } Initial value of binary semaphore "mutex" = ... at any instant of time? a) 2 b) 3 c) 9 d) 10 e) 1 Plz explain in details which one is true out of these options.
Q : Each process Pi , i = 1 to 9 executes the following code : while (TRUE) { P(mutex); Critical section ; V(mutex);}The process P10 executes the foll...
Habibkhan
3.0k
views
Habibkhan
asked
Oct 16, 2016
Operating System
operating-system
process-synchronization
binary-semaphore
+
–
5
votes
3
answers
2601
Two process critical section software solution
// a software solution for critical section problem bool flag[2]; int turn; void process(int id) { while(true) { flag[id] = true; while(turn != id) { while(flag[1-id]); turn = id; } < Critical Section > ... return 0; } Which of the following is false ? Mutual exclusion is satisfied. Progress is satisfied. Bounded waiting is satisfied. None.
// a software solution for critical section problem bool flag ; int turn; void process(int id) { while(true) { flag[id] = true; while(turn != id) { while(flag[1-id]); tur...
dd
2.6k
views
dd
asked
Oct 14, 2016
Operating System
operating-system
process-synchronization
critical-section
+
–
0
votes
2
answers
2602
Doubt in some basic things synchronisation
I have some fundamental doubts regarding the conditions which need to be followed for a correct synchronisation solution i.e. about mutual exclusion , progress and bounded wait. I m asking these. Plz address to these doubts but give a ... for the fact whether the bounded wait condition is satisfied or not? Also plz support your answer with proper reason..
I have some fundamental doubts regarding the conditions which need to be followed for a correct synchronisation solution i.e. about mutual exclusion , progress and bounde...
Habibkhan
1.4k
views
Habibkhan
asked
Oct 14, 2016
Operating System
operating-system
process-synchronization
+
–
1
votes
3
answers
2603
CPU Scheduling
Which are invalid process state transition? a. Timer Start: ready->running b. Timer Out: running->blocked c. I/O: running->ready d. Resume : suspend->running
Which are invalid process state transition?a. Timer Start: ready->runningb. Timer Out: running->blockedc. I/O: running->readyd. Resume : suspend->running
harshit agarwal
1.7k
views
harshit agarwal
asked
Oct 13, 2016
Operating System
process-scheduling
operating-system
ace-booklet
+
–
1
votes
1
answer
2604
concurrent programming
// prog.c int x = 0; // shared variable. void function(int s) { int i=0; // local to function for(i=0;i<s;i++) x++; } int main() { parbegin function(8); function(13); parend } note : increment on x can be assumed to be executed in CPU in three steps (load,increment,store) What is the minimum possible value of x, after completion of the program prog.c ?
// prog.c int x = 0; // shared variable. void function(int s) { int i=0; // local to function for(i=0;i<s;i++) x++; } int main() { parbegin function(8); function(13); par...
dd
1.2k
views
dd
asked
Oct 13, 2016
Operating System
programming-in-c
operating-system
concurrency
+
–
3
votes
2
answers
2605
Doubt
Where Does PCB get stored? a) main memory b) Kernel c) both a & b d) secondary memory
Where Does PCB get stored?a) main memoryb) Kernelc) both a & bd) secondary memory
cse7
2.8k
views
cse7
asked
Oct 12, 2016
Operating System
operating-system
+
–
1
votes
2
answers
2606
synchronization reader's writer's problem.
int readers_count = 0; semaphore mutex = 1; // binary semaphore semaphore db = 1; // binary semaphore void reader() { while(TRUE) { x. down(mutex); //or wait(mutex) or P(mutex) readers_count = readers_count + 1; y. if(readers_count ... and writers are allowed in the database at the same time. c. There is possibility of deadlock. d. None of the above.
int readers_count = 0; semaphore mutex = 1; // binary semaphore semaphore db = 1; // binary semaphore void reader() { while(TRUE) { x. down(mutex); //or wait(mutex) or P(...
dd
2.3k
views
dd
asked
Oct 11, 2016
Operating System
process-synchronization
deadlock-prevention-avoidance-detection
operating-system
+
–
1
votes
2
answers
2607
cpu scheduler
Q1) _________________ scheduler hold the degree of multi programming Q2) _________________ scheduler reduces the degree of multi-programming.
Q1) _________________ scheduler hold the degree of multi programmingQ2) _________________ scheduler reduces the degree of multi-programming.
cse7
8.8k
views
cse7
asked
Oct 11, 2016
Operating System
operating-system
process-scheduling
+
–
4
votes
1
answer
2608
File system :
Consider a UNIX-like file system implemented with i-nodes that resides on a disk of size $512\text GB$. Each i-node has a total of $15$block addresses consisting of direct and indirect lock addresses. Suppose we configure the file system to use a block size of $32$KB. How many bytes ... all $15$ block addresses in an I-node? a). $15$ Bytes b). $29$ Bytes c). $45$ Bytes d). $75$ Bytes
Consider a UNIX-like file system implemented with i-nodes that resides on a disk of size $512\text GB$. Each i-node has a total of $15$block addresses consisting of direc...
mcjoshi
1.2k
views
mcjoshi
asked
Oct 11, 2016
Unknown Category
operating-system
inode
file-system
+
–
2
votes
1
answer
2609
Semaphores:
Assume that you have a semaphore associated with each item on a doubly linked list. Using No other synchronization primitive, What is the fewest number of semaphore that you must acquire for any operation (lookup, insert, delete) ?
Assume that you have a semaphore associated with each item on a doubly linked list. Using No other synchronization primitive, What is the fewest number of semaphore that ...
mcjoshi
1.2k
views
mcjoshi
asked
Oct 11, 2016
Operating System
operating-system
semaphore
linked-list
+
–
1
votes
2
answers
2610
MadeEasy Test Series: Operating System - Disk Scheduling
vaishali jhalani
538
views
vaishali jhalani
asked
Oct 11, 2016
Operating System
made-easy-test-series
operating-system
disk-scheduling
+
–
Page:
« prev
1
...
82
83
84
85
86
87
88
89
90
91
92
...
114
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register