OS notes

Basically , links

Hyper-threading

Threads: User-level vs Kernel

User/Kernel Mode, Syscall, I/O, Exceptions

  • The user-mode program places values in registers, or creates a stack frame with arguments, to indicate what specific service it requires from the operating system.
  • The user-mode program then performs the trap instruction.
  • Immediately, the CPU switches to kernel mode, and jumps to instructions at a fixed location in memory.
  • These instruction, which are part of the operating system, have memory protections so that they cannot be modified by user-mode programs, and may also be unreadable by user-mode programs.
  • The instructions, known as the trap or system call handler, read the details of the requested service + arguments, and then perform this request in kernel mode.
  • With the system call done, the operating system resets the mode to user-mode and returns from the system call, or there is an instruction to do both at the same time.

https://stackoverflow.com/questions/19441823/a-file-opened-for-read-and-write-can-be-unlinked/19441923

https://www.guru99.com/mutex-vs-semaphore.html

https://en.wikipedia.org/wiki/Rate-monotonic_scheduling

https://www.geeksforgeeks.org/rate-monotonic-scheduling/

https://www.geeksforgeeks.org/earliest-deadline-first-edf-cpu-scheduling-algorithm/

https://www.geeksforgeeks.org/program-for-next-fit-algorithm-in-memory-management/

Feb 3, 2021


[+] click to leave a comment [+]
the comment system on this blog works via email. The button
below will generate a mailto: link based on this page's url 
and invoke your email client - please edit the comment there!

[optional] even better, encrypt the email with my public key

- don't modify the subject field
- specify a nickname, otherwise your comment will be shown as   
  anonymous
- your email address will not be disclosed
- you agree that the comment is to be made public.
- to take down a comment, send the request via email.

>> SEND COMMENT <<




Fun with Image Maps and SVGs via benji February 20, 2024

Over the past few weeks I've been playing around with making some images on my website interactive. My "informatics" class in high school taught us some basic HTML. By basic I mean in notepad and writing everything by hand, saving to a...

Goblin Week 2024 via Helvetica Blanc January 26, 2024

It snuck up on me, but I managed to draw my little goblins to celebrate the week! I love my children - they're like awful Pikmin. I've uploaded the whole parade as a print, as well as individual prints for each goblin. There's something very fu…

How to trust gpg keys via Travis Shears Personal Site October 27, 2023

After moving some GPG keys to a new computer I kept getting these trust warnings. It is NOT certain that the key belongs to the person named in the user ID.If you * really * know what you are doing, you may answer the next question with yes. Use this key a…

Generated by openring from webring