Questions tagged [operating-systems]

Questions about the principles of software that interfaces between hardware and applications.

Filter by
Sorted by
Tagged with
-3 votes
1 answer
56 views

Which is not the benefit of DLL

Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries? (a) Smaller sizes of executable (b) Lesser overall page fault ...
Swastik Sanyal's user avatar
-1 votes
0 answers
13 views

What benefits OS virtualization offer as opposed server virtualization?

I am going through various virtualization concepts, and am trying to understand their benefits. Based on what I have read, Amazon EC2 is an example of server/hardware virtualization, and it helps us ...
Max's user avatar
  • 137
0 votes
1 answer
42 views

A program detecting whether it's running in a virtual machine

I heard hypervisors try to make this undetectable to the client .A good hypervisor will have zero latency and be transparent. Can a program detect whether it's running in a virtual machine by trying ...
Jess Fuckett's user avatar
0 votes
0 answers
25 views

What could cause a Windows 11 machine to have so much more elapsed time relative to a Windows 10 machine?

I have a Windows 10 desktop (6 years old - Dell Optiplex) and a new Windows 11 laptop (maybe last years model - Lenovo Thinkpad P16 Gen2). I am running scripts in R to compare their compute times. The ...
jdods's user avatar
  • 111
0 votes
0 answers
17 views

Size of page Table entry

The following question was asked by our professor in exam:- Given a system with 4GB virtual address space and page size 4KB and total physical RAM of size 8KB. What will be the size of the page Table ...
Arpan's user avatar
  • 1
1 vote
1 answer
43 views

How synchronous and asynchronous signals are different?

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 ...
tbhaxor's user avatar
  • 208
1 vote
0 answers
35 views

Who and how generate the virtual/logical addresses? Confusion if it's the compiler, the linker, the loader

I know that when I compile a program and then I inspect with objdump, I have addresses. These are relative addresses. But if it's a C program and I printf with <...
Allexj's user avatar
  • 111
1 vote
0 answers
31 views

How does virtualization handle modern TLBs?

In an answer to this question: For instance, modern Intel TLBs have a process context ID (PCID); each TLB entry is tagged with the PCID of the process that the page mapping is for, and the processor ...
whoisit's user avatar
  • 165
1 vote
0 answers
42 views

Order of releasing the semaphores

I was studying the dining philosopher problem (See problem description) and its solution using semaphores, and I came across this : ...
Girik Garg's user avatar
1 vote
1 answer
94 views

Can a MMU be emulated entirely in software?

I'm curious about the viability of creating memory isolated processes on a processor without an MMU. While it would be inefficient I'm wondering if it's possible to basically create a virtual machine ...
FourierFlux's user avatar
0 votes
1 answer
51 views

Concurrency in Operating System

I had the following question in an exam: Which of the following best describes the concept of concurrency in an operating system? Options: The ability to execute multiple programs simultaneously. The ...
ray an's user avatar
  • 115
1 vote
0 answers
117 views

Oldest Operating System still in use today?

Reading through https://en.wikipedia.org/wiki/Timeline_of_operating_systems to decide where to port some library software—network|crypto|archive abstracting—I'm writing in C (C89). DOS is definitely ...
Samuel Marks's user avatar
0 votes
1 answer
98 views

Bankers Algorithm - maximum number of processes

I recently got the following question in my exam. Q1) In the banker's algorithm, if the total number of resources in the system is 20 and the maximum resource allocation for a process is 5, what is ...
ray an's user avatar
  • 115
-1 votes
2 answers
28 views

Which searching technique will cause lesser number of page fault?

Linear Search has O(n) T.C and Binary Search have O(logn) T.C. But how come Linear Search generates fewer page faults? Is there another searching technique that causes a lesser number of page faults ...
Vedant Khandelwal's user avatar
0 votes
0 answers
17 views

What are the main differences in file implementation between linux ext4 and wi dows 10 ntfs at low level?

I need help with this is possible. Could someone who has a good understanding of Linux and Windows explain how they differ in file implementation foxuing on low level end? There isn't a huge amount of ...
luke 112472's user avatar
1 vote
0 answers
20 views

How can I connect a drive to a 16 bit custom intel 8088 system?

I'm embarking on a long-term project, aiming to build a computer based on the Intel 8088 architecture. This venture provides an excellent opportunity to deepen my understanding of computer hardware ...
Grizzly's user avatar
  • 11
-1 votes
1 answer
29 views

What is a real life analogy of busy waiting by process "i" when "turn=i"?

...
barnyard9's user avatar
  • 133
0 votes
1 answer
39 views

Process Synchronization and Atomic Instructions

According to the book " Operating Systems Concepts ", ninth edition , page 210, we have the following statement : Many modern computer systems therefore provide special hardware ...
John adams's user avatar
0 votes
1 answer
68 views

Roles of 80386 MMU Paging Unit and similarity with modern CPU MMU

While searching for the structure of the MMU, I found the image below (80386 Internal Architecture). I have three questions. Q1. I'd like to know the roles of 'Adder', 'Page Cache', and 'Control and ...
W298's user avatar
  • 3
0 votes
1 answer
42 views

What happens for hardware Interrupts in non-preemptive scheduling?

In non-preemptive scheduling, the running process cant be interrupted .But what will when the CPU receive a hardware interrupt such as the an interrupt from the printer indicating that the current ...
John adams's user avatar
1 vote
2 answers
51 views

What is point of calling syscalls in the kernel?

If syscalls are meant to transition into kernel mode from user mode, what is the point of calling syscalls in the kernel? Reference: https://stackoverflow.com/questions/15841327/can-we-call-system-...
tbhaxor's user avatar
  • 208
0 votes
0 answers
27 views

Which queue does `wait()` suspended process goes into?

According to javatpoint, ready and wait queue are different. But according to wikipedia they are synonymous, in this context. Now I am more confused. What I want to know is, when the parent process ...
tbhaxor's user avatar
  • 208
0 votes
1 answer
27 views

Processes with communication exclusive from the OS

Most OSes use the message passing system to let 2 processes communicated with each other.This works by a shared mailbox between the OS and each process loaded in the RAM however are there processes ...
Cerise's user avatar
  • 153
0 votes
1 answer
270 views

Two-Level Threading Model

In multithreading models, we have a two-level model in which we multiplexes many user-level threads to a smaller or equal number of kernel threads but also allows a user-level thread to be bound to a ...
John adams's user avatar
0 votes
1 answer
32 views

Process Control Block

As we know, the operating system maintains a data structure for every process called process control block. My question is where this data structure is stored inside the OS ?
John adams's user avatar
0 votes
1 answer
69 views

A question about layered architecture in OS

In layered architecture, the operating system is broken into a number of layers (levels). The bottom layer (layer 0) is the hardware; the highest (layer N) is the user interface. Each layer is ...
John adams's user avatar
0 votes
1 answer
54 views

Understanding the Relationship Between CPU Registers Amounts and Maximum RAM in 32-bit Architectures

To my knowledge, The number of CPU registers can tell us the maximum RAM we can have. I am only talking about physical memory, no virtual memory or virtualization in my question. A 32-bit CPU ...
Ahmad Addas's user avatar
0 votes
1 answer
115 views

What is the difference between Application Programs and System Programs?

In Operating Systems, What is the difference between Application Programs and System Programs? Also, what are examples of each?
John adams's user avatar
0 votes
1 answer
147 views

Device Controllers in OS

According to this article, we have the following: The device controller gets data from a connected system device and temporarily saves such data in a special purpose register inside the controller ...
John adams's user avatar
0 votes
0 answers
43 views

Is the OS kernel part of the main() of the OS or is it a seperate function?

I am wondering is usually the OS kernel which provides a link between 2 processes part of the main() of the os or is it a seperate function?In other words do we usually encapsulate the OS kernel in ...
Cerise's user avatar
  • 153
0 votes
2 answers
43 views

Is communication between processes really important for a OS or is it just a convenience?

One of the services of a OS is communication between processes.However how much important is that?I dont think it is that important just for example if we saved a .txt file the file explorer wouldnt ...
Cerise's user avatar
  • 153
0 votes
1 answer
29 views

Why when we use DMA , Read/Write operations on I/O devices are faster?

I am wondering why are read/write operations on I/O devices much faster when we use DMA?I must be that when using DMA we have 1 less clock cycle to access the local buffer of a IO device since it is ...
Cerise's user avatar
  • 153
0 votes
2 answers
166 views

Why can't we mount multiple filesystem in same mountpoint?

Systems impose semantics to clarify functionality. For example, a system may disallow a mount over a directory that contains files; or it may make the mounted file system available at tha directory ...
Team B.I's user avatar
  • 229
0 votes
0 answers
37 views

Trapframe vs Scheduler Context in Process Management

So a process have scheduler context and trapframe and both of them are allocated in the kernel stack (kstack). When process wants to transition from user mode to kernel mode, usually due to traps (...
tbhaxor's user avatar
  • 208
0 votes
0 answers
64 views

How does garbage collection works in operating systems?

As per the author, ...In this case, we generally need to use a garbage collection scheme to determine when the last reference has been deleted and the disk space can be reallocated. Garbage ...
Team B.I's user avatar
  • 229
1 vote
0 answers
59 views

How is the physical address calculated in Page tables?

Taking an example, say we have Page size = 4KB, Page Table Entry = 4B, Physical Address Space requires 36 bits In 3-level multi-paging, let's say the number of entries in the level 3 page table is 2^9 ...
parsingstreet's user avatar
0 votes
1 answer
87 views

What is the optimal resource to follow to learn Operating System?

I wanted to learn Operating System on my own. Although I have learned few basic things from here and there, but wanted to know the suggestions (books, any video lecture, etc.) from this community.
harshmangalamv's user avatar
0 votes
0 answers
161 views

Size of the page table

Question Consider a system which has logical address is 7 bits, physical address is 6 bits , page size is 8 words, calculate the number of pages and no.of frames, size of page table. Answer Addressing ...
Saket Singh's user avatar
0 votes
1 answer
74 views

Deadlock in LockTwo Algorithm

I was reading the Book: The Art of Multiprocessor Programming; Section 2.3.2. and I have a doubt regarding their $\texttt{LockTwo}$ algorithm mentioned in Page 26. The snippet of the algorithm is: <...
Equation_Charmer's user avatar
1 vote
1 answer
35 views

How exactly does stale data appear in temporal buffer in Downfall attack?

I've read Downfall paper. In the university, I've had an introductory course on computer organization and operating systems. We also studied Spectre and Meltdown attacks there. I understood the ...
Borisav Živanović's user avatar
0 votes
0 answers
34 views

Protection in OS

According to the book " Operating Systems Concepts " , 9th edition, page 637, we have the following statement : Rather than associating the columns of the access matrix with the objects as ...
AAA's user avatar
  • 43
0 votes
2 answers
39 views

What exactly is stored in dynamic linking

I read that in dynamic linking we store the references to the the methods of the library , but a library is essentially a collection of files , and every file will have some code in it , so the ...
green_32's user avatar
  • 113
0 votes
0 answers
16 views

How can I solve the error "Kernel Power EventID 41"?

My laptop started doing this recently It does this sometimes when I wake it from sleep /standby. It just restarts. And sometimes when I turn it on (from having it properly shut down the day before). ...
Shion's user avatar
  • 1
0 votes
0 answers
25 views

What if the size of the logical address is not power of two?

If the logical address and the page size are power of two, then we can separate the virtual address into two parts: page number and offset. Is this still valid if the virtual address is not power of ...
AAA's user avatar
  • 43
0 votes
1 answer
286 views

How does this swap instruction achieves mutual exclusion, progress and bounded waiting if it does?

...
zeeshanseikh's user avatar
0 votes
1 answer
179 views

How are waits in semaphores made atomic in nature?

I was going through the book Operating Systems by Galvin. First they explain Semaphores acting like a mutex. While talking about semaphores as mutex, they mention that the wait operation of semaphores ...
Himanshuman's user avatar
2 votes
1 answer
75 views

Nonpreemptive kernels in OS

According to the book " Operating Systems Concepts " , 9th edition, page 207, we have the following statement : Obviously, a nonpreemptive kernel is essentially free from race conditions on ...
AAA's user avatar
  • 43
0 votes
1 answer
135 views

How to test progress and bounded waiting in Peterson's algorithm?

This is Petersons's solution for critical section problem. I want to test mutual exclusion, progress and bounded waiting for it. Of course, it satisfied all three. ...
zeeshanseikh's user avatar
0 votes
0 answers
35 views

Worst Case Response Time (WCRT) analysis the only necessary test for real time tasks?

Recently, I have taken a Computer Science exam for the course Operating Systems. One question was as follows: Which statements about real-time operating systems are true? I selected two options, but ...
Daniel's user avatar
  • 1
3 votes
1 answer
140 views

How does the OS track Reference Counters in Copy-on-Write forks?

I'm trying to modify xv6-riscv to perform a copy-on-write mapping when executing fork(), but I'm struggling to determine a concise way to manage the copy-on-write ...
VanceR's user avatar
  • 33

1
2 3 4 5
16