Operating Systems 2021F Lecture 20

From Soma-notes
Revision as of 16:26, 30 November 2021 by Soma (talk | contribs) (Created page with "==Video== Video from the lecture given on November 30, 2021 is now available: * [https://homeostasis.scs.carleton.ca/~soma/os-2021f/lectures/comp3000-2021f-lec20-20211130.m4v...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Video

Video from the lecture given on November 30, 2021 is now available:

Video is also available through Brightspace (Resources->Class zoom meetings->Cloud Recordings tab)

Notes

Lecture 20
----------

 - for A3Q6, if you reported the results of a reasonable experiment
   you can get full credit even if you got the wrong answer

"Holes" in UNIX files
 - why allocate blocks that are storing all 0's (null bytes)?
 - If you write zeros to a file, it will take up space
 - however, if you seek past the end of a file and then write,
   the space in between will become a "hole" which logically has
   null bytes but takes up no space on disk

in the Linux kernel, processes and kernel threads are represented
as "tasks"
  - something that can be scheduled to run on the CPU

If you want to do something in kernel space that you know how to do from userspace using system calls
 - look at how the system call is implemented