Spring 2020 (01/27/2020 - 05/18/2020)

The semester has 27 class meetings including midterm and final exams. Clicking on a class day below, you should find the class module for the day including lecture notes, assignments, and others. The instructor releases the content for a class generally on the Monday before the class. However, the instructor often makes update to the module content after the initial release. You should check this page often for up-to-date content.

In case you encounter a problem when viewing class content, such as, a broken link, please report it to the instructor immediately.

Topics: overview of class organization; overview of operating systems including computer organization, computer architecture, operating system structures, resources management, and computing environments

Lecture Notes

Assignments

Online Quiz 1 on CUNY Blackboard (Due: before the class on Monday, February 3 on CUNY Blackboard)

Reading

Chapter 1 of the textbook

Online Discussion via Disqus (Experimental)

Topics: review of concept of interrupts and interrupt handling; Overview of I/O hardware; I/O schemes;

Lecture Notes

Assignments

Setting up a x86 Linux system on a VirtualBox virtual machine and running the example boot sector programs. (Due: by February 12.)

Reading

Sections 1.2, 1.3, 1.7; Sections 12.1, 12.2, 12.3

Online Discussion via Disqus (Experimental)

Topics: review of concept of interrupts and interrupt handling; Overview of I/O hardware; I/O schemes;

Lecture Notes

Assignments

Setting up a x86 Linux system on a VirtualBox virtual machine and running the example boot sector programs. (Due: by February 12.)

Reading

Sections 1.2, 1.3, 1.7; Sections 12.1, 12.2, 12.3

Online Discussion via Disqus (Experimental)

Topics: review of concept of interrupts and interrupt handling; Overview of I/O hardware; I/O schemes;

Lecture Notes

Assignments

Setting up a x86 Linux system on a VirtualBox virtual machine and running the example boot sector programs. (Due: by February 12.)

Reading

Sections 1.2, 1.3, 1.7; Sections 12.1, 12.2, 12.3

Online Discussion via Disqus (Experimental)

Topics: OS functions and services; user OS interface; system calls; type of system calls; system calls and library functions; using system calls; system calls and APIs; system programs; overview of OS design and implementation; OS structure; OS debugging; building and booting OS

Lecture Notes

Assignments

Online Quiz 2 on CUNY Blackboard (Due: before the class on Wednesday, February 26 on CUNY Blackboard)

Reading

Sections 2.1 - 2.11

Online Discussion via Disqus (Experimental)

Topics: OS functions and services; user OS interface; system calls; type of system calls; system calls and library functions; using system calls; system calls and APIs; system programs; overview of OS design and implementation; OS structure; OS debugging; building and booting OS

Lecture Notes

Assignments

Online Quiz 2 on CUNY Blackboard (Due: before the class on Wednesday, February 26 on CUNY Blackboard)

Reading

Sections 2.1 - 2.11

Online Discussion via Disqus (Experimental)

Topics: OS functions and services; user OS interface; system calls; type of system calls; system calls and library functions; using system calls; system calls and APIs; system programs; overview of OS design and implementation; OS structure; OS debugging; building and booting OS

Lecture Notes

Assignments

Online Quiz 2 on CUNY Blackboard (Due: before the class on Wednesday, February 26 on CUNY Blackboard)

Reading

Sections 2.1 - 2.11

Online Discussion via Disqus (Experimental)

Topics: concepts of process and thread; process/thread scheduling; process/thread states; transition of process/threat states; process control block; process creation; process termination; multirprocess architecture;

Lecture Notes

Assignments

Experimenting process example programs in the above. (Due: Due by March 4 on CUNY Blackboard.)
(Group) Project 0 (whose description is on CUNY Blackboard) (Due: before the class, Monday, March 9, 2020)
(Group) Project 1 (whose description is on CUNY Blackboard) (Due: before the class, Monday, April 6, 2020)

Reading

Section 3.1 - 3.3

Online Discussion via Disqus (Experimental)

Topics: concepts of process and thread; process/thread scheduling; process/thread states; transition of process/threat states; process control block; process creation; process termination; multirprocess architecture;

Lecture Notes

Assignments

Experimenting process example programs in the above. (Due: Due by March 4 on CUNY Blackboard.)
(Group) Project 0 (whose description is on CUNY Blackboard) (Due: before the class, Monday, March 9, 2020)
(Group) Project 1 (whose description is on CUNY Blackboard) (Due: before the class, Monday, April 6, 2020)

Reading

Section 3.1 - 3.3

Online Discussion via Disqus (Experimental)

Topics: concepts of process and thread; process/thread scheduling; process/thread states; transition of process/threat states; process control block; process creation; process termination; multirprocess architecture;

Lecture Notes

Assignments

Experimenting process example programs in the above. (Due: Due by March 4 on CUNY Blackboard.)
(Group) Project 0 (whose description is on CUNY Blackboard) (Due: before the class, Monday, March 9, 2020)
(Group) Project 1 (whose description is on CUNY Blackboard) (Due: before the class, Monday, April 6, 2020)

Reading

Section 3.1 - 3.3

Online Discussion via Disqus (Experimental)

Topics: inter-process communcations; multithread architecture; comparison of multiprocess and multithread architectures; (time permits) thread libraries; (time permits) operating system thread libraries examples; (time permits) implicit threading; (time permits) implicit threading operating systems examples; (time permits) threading issues;

Lecture Notes

Assignments

Online Quiz 3 on CUNY Blackboard (Due: before the class on Wednesday, March 11 on CUNY Blackboard)

Reading

Sections 3.4 - 3.8, and Sections 4.1 - 4.7

Online Discussion via Disqus (Experimental)

Topics: midterm exam review; inter-process communcations; multithread architecture; comparison of multiprocess and multithread architectures; (time permits) thread libraries; (time permits) operating system thread libraries examples; (time permits) implicit threading; (time permits) implicit threading operating systems examples; (time permits) threading issues;

Lecture Notes

Reading

Online Quiz 4 on CUNY Blackboard (for Midterm Exam Review)
Midterm Review: Chapters 1, 2, 3, and Sections 12.1 and 12.2 of the textbook; lecture note; all quizzes; review guide and test

Online Discussion via Disqus (Experimental)

Topics: inter-process communcations; multithread architecture; comparison of multiprocess and multithread architectures; (time permits) thread libraries; (time permits) operating system thread libraries examples; (time permits) implicit threading; (time permits) implicit threading operating systems examples; (time permits) threading issues;

Lecture Notes

Assignments

Online Quiz 3 on CUNY Blackboard (Due: before the class on Wednesday, March 11 on CUNY Blackboard)

Reading

Sections 3.4 - 3.8, and Sections 4.1 - 4.7

Online Discussion via Disqus (Experimental)

Topics: Miterm Exam is held 3:40 - 4:55 PM via both WebEx and CUNY Blackboard. The exam covers the conent in chapters 1, 2, 3, and sections 12.1 and 12.2 in the textbook.

Online Discussion via Disqus (Experimental)

Notice: CUNY has instituted a Recalibration Period for Educational Equity, beginning this Friday, March 27, through Wednesday April 1. Distance learning will resume on Thursday, April 2. This period will allow our colleges to fine-tune distance learning practices and ensure that all students have access to the equipment they need to complete their academic requirements this spring.

Notice: CUNY has instituted a Recalibration Period for Educational Equity, beginning this Friday, March 27, through Wednesday April 1. Distance learning will resume on Thursday, April 2. This period will allow our colleges to fine-tune distance learning practices and ensure that all students have access to the equipment they need to complete their academic requirements this spring.

Topics: basic concepts regarding multiprogramming; scheduling criteria; scheduling algorithms; thread scheduling; scheduling for multiprocessor systems; real-time scheduling; (time permits) operating system CPU scheduling examples; (time permits) algorithm evaluation

Lecture Notes

Assignments

Online Quiz 5 on CUNY Blackboard (Due: before the class on Monday, April 20 on CUNY Blackboard)

Reading

Sections 5.1 - 5.7

Online Discussion via Disqus (Experimental)

Topics: basic concepts regarding multiprogramming; scheduling criteria; scheduling algorithms; thread scheduling; scheduling for multiprocessor systems; real-time scheduling; (time permits) operating system CPU scheduling examples; (time permits) algorithm evaluation

Lecture Notes

Assignments

Online Quiz 5 on CUNY Blackboard (Due: before the class on Monday, April 20 on CUNY Blackboard)

Reading

Sections 5.1 - 5.7

Online Discussion via Disqus (Experimental)

Notice: College open but no class scheduled per the College's calendar for Spring 2020

Topics: Race condition; critical section problem; (time permits) Peterson's solution, limitation of Peterson's solution; (time permits) hardware support for synchronization, test_and_set, compare_and_swap, acquiring and releasing locks via hardware instructions; (time permits) meeting critical section requirements (mutual exclusion, progress, and bounded waiting); Mutex locks, semaphore, monitor, and OS examples; Concept of deadlock; necessary conditions; resource allocation graph; Banker's algorithm; the Ostrich algorithm; (time permits) deadlock avoidance; (time permits) deadlock detection; (time permits) deadlock prevention; (time permits) recovery from deadlock;

Lecture Notes

Assignments

Online Quiz 6 on CUNY Blackboard (Due: before the class on Wednesday, April 29 on CUNY Blackboard)
(Group) Project 2 (whose description is on CUNY Blackboard) (Due: before the class, Wednesday, May 6, 2020)

Reading

Chapter 6, Sections 7.2 - 7.4; Sections 8.1, 8.3, 8.4, and 8.6; (Optional) Section 8.2, 8.5, 8.7, and 8.9

Online Discussion via Disqus (Experimental)

Topics: Race condition; critical section problem; (time permits) Peterson's solution, limitation of Peterson's solution; (time permits) hardware support for synchronization, test_and_set, compare_and_swap, acquiring and releasing locks via hardware instructions; (time permits) meeting critical section requirements (mutual exclusion, progress, and bounded waiting); Mutex locks, semaphore, monitor, and OS examples; Concept of deadlock; necessary conditions; resource allocation graph; Banker's algorithm; the Ostrich algorithm; (time permits) deadlock avoidance; (time permits) deadlock detection; (time permits) deadlock prevention; (time permits) recovery from deadlock;

Lecture Notes

Assignments

Online Quiz 6 on CUNY Blackboard (Due: before the class on Wednesday, April 29 on CUNY Blackboard)
(Group) Project 2 (whose description is on CUNY Blackboard) (Due: before the class, Wednesday, May 6, 2020)

Reading

Chapter 6, Sections 7.2 - 7.4; Sections 8.1, 8.3, 8.4, and 8.6; (Optional) Section 8.2, 8.5, 8.7, and 8.9

Online Discussion via Disqus (Experimental)

Topics: Race condition; critical section problem; (time permits) Peterson's solution, limitation of Peterson's solution; (time permits) hardware support for synchronization, test_and_set, compare_and_swap, acquiring and releasing locks via hardware instructions; (time permits) meeting critical section requirements (mutual exclusion, progress, and bounded waiting); Mutex locks, semaphore, monitor, and OS examples; Concept of deadlock; necessary conditions; resource allocation graph; Banker's algorithm; the Ostrich algorithm; (time permits) deadlock avoidance; (time permits) deadlock detection; (time permits) deadlock prevention; (time permits) recovery from deadlock;

Lecture Notes

Assignments

Online Quiz 6 on CUNY Blackboard (Due: before the class on Wednesday, April 29 on CUNY Blackboard)
(Group) Project 2 (whose description is on CUNY Blackboard) (Due: before the class, Wednesday, May 6, 2020)

Reading

Chapter 6, Sections 7.2 - 7.4; Sections 8.1, 8.3, 8.4, and 8.6; (Optional) Section 8.2, 8.5, 8.7, and 8.9

Online Discussion via Disqus (Experimental)

Topics: Race condition; critical section problem; (time permits) Peterson's solution, limitation of Peterson's solution; (time permits) hardware support for synchronization, test_and_set, compare_and_swap, acquiring and releasing locks via hardware instructions; (time permits) meeting critical section requirements (mutual exclusion, progress, and bounded waiting); Mutex locks, semaphore, monitor, and OS examples; Concept of deadlock; necessary conditions; resource allocation graph; Banker's algorithm; the Ostrich algorithm; (time permits) deadlock avoidance; (time permits) deadlock detection; (time permits) deadlock prevention; (time permits) recovery from deadlock;

Lecture Notes

Assignments

Online Quiz 6 on CUNY Blackboard (Due: before the class on Wednesday, April 29 on CUNY Blackboard)
(Group) Project 2 (whose description is on CUNY Blackboard) (Due: before the class, Wednesday, May 6, 2020)

Reading

Chapter 6, Sections 7.2 - 7.4; Sections 8.1, 8.3, 8.4, and 8.6; (Optional) Section 8.2, 8.5, 8.7, and 8.9

Online Discussion via Disqus (Experimental)

Topics: Race condition; critical section problem; (time permits) Peterson's solution, limitation of Peterson's solution; (time permits) hardware support for synchronization, test_and_set, compare_and_swap, acquiring and releasing locks via hardware instructions; (time permits) meeting critical section requirements (mutual exclusion, progress, and bounded waiting); Mutex locks, semaphore, monitor, and OS examples; Concept of deadlock; necessary conditions; resource allocation graph; Banker's algorithm; the Ostrich algorithm; (time permits) deadlock avoidance; (time permits) deadlock detection; (time permits) deadlock prevention; (time permits) recovery from deadlock;

Lecture Notes

Assignments

Online Quiz 6 on CUNY Blackboard (Due: before the class on Wednesday, April 29 on CUNY Blackboard)
(Group) Project 2 (whose description is on CUNY Blackboard) (Due: before the class, Wednesday, May 6, 2020)

Reading

Chapter 6, Sections 7.2 - 7.4; Sections 8.1, 8.3, 8.4, and 8.6; (Optional) Section 8.2, 8.5, 8.7, and 8.9

Online Discussion via Disqus (Experimental)

Topics: Address binding; memory allocation; logical address; physical address; rellocation and limit registers; continuous allocation; paging; TLB; analysis of TLB; structure of page tables (hierarchical, hashed, and inverted), memory segmentation

Lecture Notes

Assignments

Final Exam Review (Due: N/A)

Reading

Sections 9.1 - 9.4

Online Discussion via Disqus (Experimental)

Topics: Address binding; memory allocation; logical address; physical address; rellocation and limit registers; continuous allocation; paging; TLB; analysis of TLB; structure of page tables (hierarchical, hashed, and inverted), memory segmentation

Lecture Notes

Assignments

Final Exam Review (Due: N/A)

Reading

Sections 9.1 - 9.4

Online Discussion via Disqus (Experimental)

Topics: Concept of swapping; concept of virtual memory; demand paging; copy-on-write; frame allocation; page replacement; thrashing; working-set model;

Lecture Notes

Reading

Section 9.5; Sections 10.1 - 10.6

Online Discussion via Disqus (Experimental)

Topics: Concept of swapping; concept of virtual memory; demand paging; copy-on-write; frame allocation; page replacement; thrashing; working-set model;

Lecture Notes

Reading

Section 9.5; Sections 10.1 - 10.6

Online Discussion via Disqus (Experimental)

Topics: Concept of swapping; concept of virtual memory; demand paging; copy-on-write; frame allocation; page replacement; thrashing; working-set model;

Lecture Notes

Reading

Section 9.5; Sections 10.1 - 10.6

Online Discussion via Disqus (Experimental)