Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 78247

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

5 votes
Accepted

hardware interrupts and context switch

I think the answer partially intersects that of Do system calls always means a context switch?: it depends on the exact definition of "context switch". On most CPUs, an interrupt is not serviced in us …
Amaury Pouly's user avatar
  • 1,181
17 votes

Do system calls always means a context switch?

A system call does not necessarily require a context switch in general, but rather a privilege switch. This is because the kernel memory is mapped in each process memory. The user process cannot acces …
Amaury Pouly's user avatar
  • 1,181
2 votes

File systems and writing one

The MBR refers to the format used by (many but not all, and slowly being replaced by GPT) disk to identity partitions. A partition is simply a contiguous range of blocks on the disk. A partition is of …
Amaury Pouly's user avatar
  • 1,181
2 votes
Accepted

How does the OS detect B&B violation from hardware?

When an invalid access is detected, the #BR exception is triggered, the CPU will switch to privilege mode and load the corresponding vector (Bounds range exceeded) from the IVT. The CPU also pushes th …
Amaury Pouly's user avatar
  • 1,181
3 votes
Accepted

Does MMU contain and manage CPU caches?

First the term MMU refers to many different thing (more on later below). For now let's defined MMU as "virtual to physical address translation". The caches L1 and L2 are always managed in hardware, h …
Amaury Pouly's user avatar
  • 1,181
4 votes
Accepted

How can a spinlock progress when it's busy-waiting?

There might be other CPUs in the system, if one is busy waiting, another can be doing something. Furthermore, if the OS uses preemptive scheduling, the thread doing the busy wait might be preempted an …
Amaury Pouly's user avatar
  • 1,181