|Teoria||8||I semestre||Graziano Pravadelli|
|Laboratorio [Laboratorio 1]||4||II semestre||Francesco Stefanni|
|Laboratorio [Laboratorio 1 e 2]||4||II semestre||Luigi Di Guglielmo|
|Laboratorio [Laboratorio 2]||4||II semestre||Giuseppe Di Guglielmo|
The course introduces to operating system design, with particular regards to concepts related to the architecture of an operating system, and to the management and synchronization of processes and resources.
* Introduction: Evolution and role of the operating system. Architectural concepts. Organization and functionality of an operating system.
* Process Management: Processes. Process status. Context switch. Process creation and termination. Thread. User-level threads and kernel-level threads. Process cooperation and communication: shared memory, messagges. Direct and indirect communication.
* Scheduling: CPU and I/O burst model. Long term, short term and medium term scheduling. Preemption. Scheduling criteria. Scheduling algorithm: FCFS, SJF, priority-based, RR, HRRN, multiple queues with and without feedback. Algorithm evaluation: deterministic and probabilistic models, simulation.
* Process synchronization: data coherency, atomic operations. Critical sections. SW approaches for mutual exclusion: Peterson and Dekker's algorithms, baker's algorithm. HW for mutual exclusion: test and set, swap. Synchronization constructs: semaphores, mutex, monitor.
* Deadlock: Deadlock conditions. Resource allocation graph. Deadlock prevention. Deadlock avoidance. Banker's algorithm. Deadlock detection e recovery.
* Memory management: Main memory. Logical and physical addressing. Relocation, address binding. Swapping. Memory allocation. Internal and external fragmentation. Paging. HW for paging: TLB. Page table. Multi-level paging. Segmentation. Segment table. Segmentation with paging.
* Virtual memory: Paging on demand. Page fault management. Page substitution algorithms: FIFO, optimal, LRU, LRU approximations. Page buffering. Frame allocation: local and global allocation. Thrashing. Working set model. Page fault frequency.
* Secondary memory. Logical and physical structure of disks. Latency time. Disk scheduling algorithms: FCFS, SSTF, SCAN, C-SCAN, LOOK, C-LOOK. I/O subsystem: I/O Hardware. I/O techniques: programmed I/O, interrupt, DMA. Device driver and application interface. I/O kernel services: scheduling, buffering, caching, spooling.
*File System: file, attributes and related operation. File types. Sequential and direct access. Directory structure. Access permissions and modes. Consistency semantics. File system structure. File system mounting. Allocation techniques: adjacent, linked, indexed. Free space management: bit vector, lists. Directory implementation: linear list, hash table.
* Shell programming in Unix/Linux.
* Introduction to the system programming in Unix/Linux.
* System calls for I/O.
* System calls for process management.
* System calls and techniques for inter-process communication and synchronization (pipe, fifo, message queue, share memory, semaphores, ...).
* Thread programming.
The final exam consists of a written test containing questions and exercises.
The exam can be taken in two modes: oral or written.
During the course, students must solve 4 homeworks and provide the corresponding solutions within deadlines defined by the theacher. Then, at the end of the course, on the second half of June, each student must present orally the provided solutions to the theacher.
The exam can be taken in oral mode only on the second half of June.
The observance of deadlines is mandatory. Students that miss the deadline cannot take the exam in the oral mode.
The exam consists of solving some exercises related to system programming by means of shell scripts and/or C programs.
The total grade (thery+laboratory) is given by:
theory_grade*0.5 + laboratory_grade*0.5.
|Teoria||Dhananjay M. Dhamdhere||Sistemi Operativi (Edizione 1)||McGraw-Hill||2010||9788838664878|
|Teoria||A. Silberschatz - P.B. Galvin - G. Gagne||Sistemi Operativi. Concetti ed esempi. (Edizione 8)||Pearson Paravia Bruno Mondadori||2009||978-88-7192-569-1|
|Title||Format (Language, Size, Publication date)|
|10- Gestione della memoria virtuale||pdf (it, 1043 KB, 07/12/11)|
|11- Gestione della memoria secondaria||pdf (it, 2426 KB, 19/12/11)|
|12- Il file system||pdf (it, 1794 KB, 10/01/12)|
|13- Strutture RAID||pdf (it, 750 KB, 17/01/12)|
|14- Sottosistema di I/O||pdf (it, 841 KB, 17/01/12)|
|15- Caso di studio||pdf (it, 1345 KB, 20/01/12)|
|1- Presentazione del corso||pdf (it, 272 KB, 03/10/11)|
|2- Definizione e storia dei sistemi operativi||pdf (it, 799 KB, 03/10/11)|
|3- Componenti di un sistema operativo||pdf (it, 360 KB, 03/10/11)|
|4- Architettura di un sistema operativo||pdf (it, 396 KB, 05/10/11)|
|5- Processi e thread||pdf (it, 1032 KB, 10/10/11)|
|6- Scheduling della CPU||pdf (it, 1444 KB, 26/10/11)|
|7- Sincronizzazione tra processi||pdf (it, 1639 KB, 28/10/11)|
|8- Deadlock||pdf (it, 600 KB, 13/11/11)|
|9- Gestione della memoria||pdf (it, 1339 KB, 21/11/11)|
|Calendario appelli||pdf (it, 34 KB, 21/11/11)|
|Calendario delle lezioni del I semestre||pdf (it, 52 KB, 18/01/12)|
|Calendario laboratorio||pdf (it, 49 KB, 19/03/12)|
|Consegne elaborati||pdf (it, 27 KB, 01/03/12)|
|Divisione studenti per laboratorio||pdf (it, 42 KB, 19/03/12)|
|Materiale didattico di laboratorio||html (it, 39 KB, 17/05/12)|