Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Webpage for Operating System
Recent questions tagged operating-system
0
votes
1
answer
1
OS, Process Scheduling
Consider a uniprocessor system with n processes in the ready queue. Round robin scheduling with time quantum x is used for process scheduling. Assume each process requires kx seconds to complete and the context switch takes 0 seconds. At what time the first process will complete the execution? (assume all the variables as integers). A) nkx B) k(nx-1) C) k(nk+n) D) x(nk-n+1)
delxbydelt
asked
in
Operating System
4 days
ago
by
delxbydelt
123
views
process-scheduling
operating-system
round-robin-scheduling
context-switch
process-synchronization
0
votes
0
answers
2
Three process P1, P2 and P3 arrive at time zero. Their total execution time is 10ms, 20ms, and 30ms respectively. They spent first 20% of their execution time in doing I/O, next 70% in CPU processing and the last 10% again doing I/O. For what percentage of time was the CPU free? Using SRTF algorithm
kamogelommoyane
asked
in
Operating System
Mar 10
by
kamogelommoyane
72
views
operating-system
1
vote
1
answer
3
#OS-FORK Output
Q23. The following C program is executed on a Unix/Linux system: main() { int i=0; while (i<20) if (i%2==0) fork(); i++; return 0; } Calculate how many number of processes will be created after executing the above program. Options: 1.1023 2.Infinite 3.1024 4.2048
BitMask
asked
in
Operating System
Mar 3
by
BitMask
207
views
operating-system
fork-system-call
gate-preparation
programming-in-c
usermod
0
votes
1
answer
4
Doubt on OS Syllabus (Galvin)
Hi, i'm starting my GATE journey and wanted to verify if these are the topics which should be learnt for GATE. The book is Operating Systems by Avi Silberschatz, Greg Gagne, and Peter Baer Galvin (9th Edition). Also have 10th edition but it seems to have rearranged a lot of topics and chapters.
Apex7D0
asked
in
Operating System
Feb 18
by
Apex7D0
149
views
syllabus
operating-system
0
votes
1
answer
5
GATE CSE 2024 | Set 2 | Question: 14
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit $\text{(MMU)}$ in a system with paging-based memory management? Allocate a new page table for a newly created process Translate a virtual address ... table Raise a trap when a process tries to write to a page marked with read-only permission in the page table
Arjun
asked
in
Operating System
Feb 16
by
Arjun
2.3k
views
gatecse2024-set2
operating-system
multiple-selects
1
vote
1
answer
6
GATE CSE 2024 | Set 2 | Question: 15
Consider a process $\text{P}$ running on a $\text{CPU}$. Which one or more of the following events will always trigger a context switch by the $\text{OS}$ that results in process $\mathrm{P}$ moving to a non-running ... page fault An interrupt is raised by the disk to deliver data requested by some other process A timer interrupt is raised by the hardware
Arjun
asked
in
Operating System
Feb 16
by
Arjun
2.5k
views
gatecse2024-set2
operating-system
multiple-selects
3
votes
3
answers
7
GATE CSE 2024 | Set 2 | Question: 27
Consider a single processor system with four processes $\text{A, B, C,}$ and $\text{D}$, represented as given below, where for each process the first value is its arrival time, and the second value is its $\text{CPU}$ ... $\mathrm{SRTF}=7, \mathrm{NP}-\mathrm{SJF}=7.5$ $\mathrm{SRTF}=7, \mathrm{NP}-\mathrm{SJF}=8.5$
Arjun
asked
in
Operating System
Feb 16
by
Arjun
1.9k
views
gatecse2024-set2
operating-system
process-scheduling
1
vote
1
answer
8
GATE CSE 2024 | Set 2 | Question: 36
Consider a multi-threaded program with two threads $\mathrm{T} 1$ and $\mathrm{T} 2$. The threads share two semaphores: $s1$ (initialized to $1$) and $s2$ (initialized to $0$). The threads also share a global variable $\mathrm{x}$ ( ... not print anything (deadlock) $\mathrm{T} 2$ runs first and prints $1, \mathrm{~T} 1$ does not print anything (deadlock)
Arjun
asked
in
Operating System
Feb 16
by
Arjun
1.7k
views
gatecse2024-set2
operating-system
multiple-selects
1
vote
1
answer
9
GATE CSE 2024 | Set 2 | Question: 43
Consider a disk with the following specifications: rotation speed of $6000$ RPM, average seek time of $5$ milliseconds, $500$ sectors/track, $512$-byte sectors. A file has content stored in $3000$ sectors located randomly on the disk. Assuming ... total time (in seconds, rounded off to $2$ decimal places) to read the entire file from the disk is ______________.
Arjun
asked
in
Operating System
Feb 16
by
Arjun
1.4k
views
gatecse2024-set2
numerical-answers
operating-system
disk
4
votes
2
answers
10
GATE CSE 2024 | Set 2 | Question: 54
Consider a $32$-bit system with $4 \mathrm{~KB}$ page size and page table entries of size $4$ bytes each. Assume $1 \mathrm{~KB}=2^{10}$ bytes. The OS uses a $2$-level page table for memory management, with the page table containing ... the maximum number of pages across the two levels of the page table of the process. The value of $\text{X+Y}$ is ___________.
Arjun
asked
in
Operating System
Feb 16
by
Arjun
2.1k
views
gatecse2024-set2
numerical-answers
operating-system
1
vote
1
answer
11
GATE CSE 2024 | Set 1 | Question: 14
Which of the following statements about threads is/are TRUE? Threads can only be implemented in kernel space Each thread has its own file descriptor table for open files All the threads belonging to a process share a common stack Threads belonging to a process are by default not protected from each other
Arjun
asked
in
Operating System
Feb 16
by
Arjun
2.4k
views
gatecse2024-set1
multiple-selects
operating-system
1
vote
1
answer
12
GATE CSE 2024 | Set 1 | Question: 15
Which of the following process state transitions is/are NOT possible? Running to Ready Waiting to Running Ready to Waiting Running to Terminated
Arjun
asked
in
Operating System
Feb 16
by
Arjun
2.2k
views
gatecse2024-set1
operating-system
process-scheduling
multiple-selects
0
votes
2
answers
13
GATE CSE 2024 | Set 1 | Question: 30
Consider the following two threads $\mathrm{T} 1$ and $\mathrm{T} 2$ that update two shared variables $\mathrm{a}$ and $\mathrm{b}$. Assume that initially $\mathrm{a}=\mathrm{b}=1$ ...
Arjun
asked
in
Operating System
Feb 16
by
Arjun
1.7k
views
gatecse2024-set1
operating-system
0
votes
2
answers
14
GATE CSE 2024 | Set 1 | Question: 44
Consider a $512$ GB hard disk with $32$ storage surfaces. There are $4096$ sectors per track and each sector holds $1024$ bytes of data. The number of cylinders in the hard disk is _________.
Arjun
asked
in
Operating System
Feb 16
by
Arjun
1.3k
views
gatecse2024-set1
numerical-answers
operating-system
0
votes
2
answers
15
GATE CSE 2024 | Set 1 | Question: 47
Consider the following code snippet using the fork () and wait () system calls. Assume that the code compiles and runs correctly, and that the system calls run successfully without any errors. int $\mathrm{x}=3$; while $(\mathrm{x}>0)$ ... ("hello"); wait (NULL) ; X-- ; } The total number of times the printf statement is executed is __________.
Arjun
asked
in
Operating System
Feb 16
by
Arjun
1.8k
views
gatecse2024-set1
numerical-answers
operating-system
1
vote
2
answers
16
GATE CSE 2024 | Set 1 | Question: 52
Consider a memory management system that uses a page size of $2 \mathrm{~KB}$. Assume that both the physical and virtual addresses start from $0$. Assume that the pages $0,1,2$, and $3$ ... $0$, respectively. The physical address (in decimal format) corresponding to the virtual address $2500$ (in decimal format) is ___________.
Arjun
asked
in
Operating System
Feb 16
by
Arjun
1.6k
views
gatecse2024-set1
numerical-answers
operating-system
0
votes
0
answers
17
memory management
we have 8 pages (each side 32B) to store in physical memory of 2^32 bits how many bits are required to identify each page , according to me 3 bits are required but that is wrong plz explain why
SSR17
asked
in
Operating System
Feb 9
by
SSR17
172
views
memory-management
operating-system
paging
virtual-memory
7
votes
1
answer
18
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 23
Consider the context switch of a CPU from the context of process P1 to that of process P2. Consider the following two events in the chronological order of the events during the context switch: E1: The stack pointer ... atomic hardware instruction. The relative ordering of E1 and E2 can vary from one context switch to the other.
GO Classes
asked
in
Operating System
Feb 5
by
GO Classes
441
views
goclasses2024-mockgate-14
operating-system
context-switch
process
1-mark
2
votes
2
answers
19
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 24
Consider a job A arrives at time $T=0$ and job length of $500 \mathrm{~ms}$. Job $B$ arrives at time $\mathrm{T}=100 \mathrm{~ms}$ with a length of $100 \mathrm{~ms}$. Considering the Shortest Remaining Time First Scheduler, what does ... for $100 \mathrm{~ms}$, then $B$ runs for $100 \mathrm{~ms}$, then A runs for $300 \mathrm{~ms}$
GO Classes
asked
in
Operating System
Feb 5
by
GO Classes
328
views
goclasses2024-mockgate-14
operating-system
process-scheduling
1-mark
9
votes
2
answers
20
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 36
Assume a linear page table, with a 1-byte page-table entry. Assume physical and virtual address spaces of size 128 bytes with 32-byte pages. The page-table base register is set to physical address 16. The contents of ... What are the physical addresses that will get referred in fetch and execute of the above instruction? 10 42 102 70
GO Classes
asked
in
Operating System
Feb 5
by
GO Classes
532
views
goclasses2024-mockgate-14
operating-system
memory-management
paging
multiple-selects
2-marks
2
votes
1
answer
21
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 37
Suppose that an operating system provides two functions, block() which puts the calling process on the blocked queue, and wakeup(P) which moves process P to the ready queue if it is currently on the blocked queue. ... alternation printing ABABAB . A and B will always run forever with strick alternation printing BABABA . None of these
GO Classes
asked
in
Operating System
Feb 5
by
GO Classes
379
views
goclasses2024-mockgate-14
operating-system
process-synchronization
deadlock-prevention-avoidance-detection
2-marks
0
votes
0
answers
22
What is the difference between synchronous and asynchronous signals?
A process can receive two kinds of signals classified based on the source and reason. Synchronous are the one that are generated by illegal memory access or division by zero. Asynchronous are the one that ... exceptions? For example we have ZeroDivisionError or FileNotFoundError and all. Ref: Signal Handling from Galvin OS book
tbhaxor
asked
in
Operating System
Feb 1
by
tbhaxor
82
views
operating-system
process
0
votes
1
answer
23
Operating System
How much time is required to load a 64 KB program from a disk with an average seek time of 30 ms, a rotation time of 20 ms per rotation, a track size of 32 KB, and a page size of 2 KB. It is assumed that the pages are spread randomly around the disk. A. 1200 ms B. 1300 ms C. 1320 ms D. 1400 ms
jaydip74
asked
in
Operating System
Jan 28
by
jaydip74
262
views
operating-system
self-doubt
5
votes
1
answer
24
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 20
Suppose we have a multi-level index file system, and this file system has $512$ Bytes blocks, inodes with $3$ direct, $1$ single-indirect, $2$ double-indirect, and $1$ triple-indirect pointer, and $64$-bit block ... inode requires the first single-indirect block number be used? $1536$ Bytes $1537$ Bytes $512$ Bytes $1500$ Bytes
GO Classes
asked
in
Operating System
Jan 28
by
GO Classes
510
views
goclasses2024-mockgate-13
goclasses
operating-system
file-system
1-mark
5
votes
1
answer
25
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 21
Consider a virtual memory system that uses paging. Virtual and physical addresses are both $32$ bits long, and the page size is $4 \textsf{KB}=2^{12}$ bytes. A process $\text{P}_1$ has the following page table. ... $\textsf{0x00003b65}$ $\textsf{0x00875b65}$ $\textsf{0x00875}$ Translation is not possible as per the given page table
GO Classes
asked
in
Operating System
Jan 28
by
GO Classes
334
views
goclasses2024-mockgate-13
goclasses
operating-system
paging
virtual-memory
1-mark
6
votes
2
answers
26
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 45
Imagine a computer with a $32$-bit virtual address space and $\text{1 KB}$ pages. It uses a two-level page table system, with page-sized chunks at the inner level(not at the outer level). Suppose the code is located at address $0,$ and there are ... is $4$ Bytes.) $64 \mathrm{~KB}$ $2 \mathrm{~KB}$ $66 \mathrm{~KB}$ $16 \mathrm{MB}$
GO Classes
asked
in
Operating System
Jan 28
by
GO Classes
684
views
goclasses2024-mockgate-13
goclasses
operating-system
paging
multilevel-paging
2-marks
7
votes
1
answer
27
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 46
Assume that for a given system, virtual addresses are $40$ bits long and physical addresses are $30$ bits long. The page size is $8$ KB. The Translation Look-aside Buffer (TLB) in the address translation path has $128$ entries. At most ... distinct virtual addresses can be translated without any TLB miss? $2^7$ $2^{20}$ $2^{13}$ $2^8$
GO Classes
asked
in
Operating System
Jan 28
by
GO Classes
380
views
goclasses2024-mockgate-13
goclasses
operating-system
translation-lookaside-buffer
2-marks
4
votes
1
answer
28
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 49
We want to use semaphores to implement a shared critical section (CS) among three threads $\mathrm{T} 1$, $\mathrm{T} 2$, and $\mathrm{T} 3$ ... What is the minimum number of binary semaphores we need in order to enforce this ordering?
GO Classes
asked
in
Operating System
Jan 28
by
GO Classes
367
views
goclasses2024-mockgate-13
goclasses
numerical-answers
operating-system
process-synchronization
semaphore
2-marks
0
votes
1
answer
29
Semaphores
Can a counting semaphore acquire a negative value? S = 2; 15 P operations done, should the semaphore be 0 or -13
Mrityudoot
asked
in
Operating System
Jan 27
by
Mrityudoot
159
views
semaphore
operating-system
process-synchronization
0
votes
3
answers
30
Operating System Round Robin
Does Round Robin guarantee bounded waiting?
Mrityudoot
asked
in
Operating System
Jan 24
by
Mrityudoot
256
views
operating-system
round-robin-scheduling
process-scheduling
Page:
1
2
3
4
5
6
...
114
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(24)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(682)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
243k
comments
79.7k
users
Recent questions tagged operating-system
Recent Blog Comments
Hlo I'm Rupesh I got AIR 3485 in gate CS and AIR...
@Ajay Sasank here is the direct link...
Thank you for the post didi My GATE 2023 & 2024...
I Hope it helps 😊
Today's best post I seen thank you for motivation