Operating Systems (2009/2010)

Course code
4S00019
Credits
12
Coordinator
Graziano Pravadelli
Other available courses
Other available courses
Other available courses
    Academic sector
    ING-INF/05 - INFORMATION PROCESSING SYSTEMS
    Language of instruction
    Italian
    Teaching is organised as follows:
    Activity Credits Period Academic staff Timetable
    Teoria 9 1st Semester, 2nd Semester Graziano Pravadelli
    Laboratorio [indirizzo generale] 3 1st Semester, 2nd Semester Damiano Carra
    Laboratorio [indirizzo multimediale] 3 1st Semester, 2nd Semester Nicola Bombieri

    Lesson timetable

    1st Semester
    Activity Day Time Type Place Note
    Teoria Thursday 3:30 PM - 6:30 PM lesson Lecture Hall A  
    Teoria Friday 11:30 AM - 1:30 PM lesson Lecture Hall A  
    2nd Semester
    Activity Day Time Type Place Note
    Teoria Wednesday 3:30 PM - 6:30 PM lesson Lecture Hall A  
    Laboratorio [indirizzo generale] Thursday 3:30 PM - 6:30 PM laboratorio Laboratory Delta  
    Laboratorio [indirizzo multimediale] Friday 1:30 PM - 4:30 PM laboratorio Laboratory Delta  

    Learning outcomes

    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.

    Syllabus

    Theory:
    -------
    * 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.

    Laboratory:
    ------------
    * 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.

    Assessment methods and criteria

    Theory:
    -------
    The final exam consists of a written test containing questions and exercises.

    Laboratory:
    -----------
    The exam can be taken in two modes: oral or written.

    Oral mode:
    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 observance of deadlines is mandatory. Students that miss the deadline cannot take the exam in the oral mode.

    Written mode:
    The exam consists of solving some exercises related to system programming by means of shell scripts and/or C programs.

    Total grade
    -----------
    The total grade (thery+laboratory) is given by:
    theory_grade*0.5 + laboratory_grade*0.5.

    Teaching aids
    Title Format (Language, Size, Publication date)
    Calendario lezioni  pdfpdf (it, 22 KB, 14/12/09)
    Calendario lezioni II semestre  pdfpdf (it, 32 KB, 01/03/10)
    Laboratorio: Testo Elaborato 1  pdfpdf (it, 28 KB, 12/04/10)
    Laboratorio: Testo Elaborato 2  pdfpdf (it, 15 KB, 18/05/10)
    Laboratorio: Testo Elaborato 3  pdfpdf (it, 150 KB, 07/06/10)
    Materiale didattico html html (it, 47 KB, 05/10/09)
    Materiale didattico (laboratorio) html html (it, 35 KB, 10/03/10)