---+ Computer Systems and Programming (2021 - 2022) ---++++ Teacher: *Giorgio Richelli - giorgio.richelli@uniroma1.it* ---++ NEWS The midterms for AA 2021-2022 were: * Nov. 15th (Basic C programming, file syscalls): [[%ATTACHURL%/MidTerm1.pdf][Problem]] and [[%ATTACHURL%/Midterm1.pdf][Scores]] * Nov. 29th (System calls related to: processes, signals, pipes, shared memory): [[%ATTACHURL%/MidTerm2.pdf][Text]] and [[%ATTACHURL%/Midterm2.pdf][Results]] * Dec. 20th (Sockets API): the [[%ATTACHURL%/Midterm_3.pdf][Text]] and the [[%ATTACHURL%/Midterm3.pdf][Results]] According to the above results, these are the [[%ATTACHURL%/Proposed.pdf][proposed marks]] for the exams. The score can be accepted, and verbalized, as is (just register for the exam session on Infostud and send me an email). Otherwise, in order to improve it, it is possible to try an oral exam. A value of Oral(XX) means that, since the student has only done 2 out of the 3 tests, he *must* pass an oral exam with the initial score indicated. And. of course, it is always possible "reset all" and do the project (see below for details). ---++++ Class Timetable Monday h.09:00/12:00- Aula Alfa Wednesday h.16:00/18:00 - Aula Alfa Lectures will be delivered in presence and also live-streamed. The URL for the lessons, and all other communications related to this course, are sent through the google group <b>CSAP </b>(see below). Office Hours *By previous appointment,* before or after the lessons ---++ CSAP Google Group A group has been created in order to allow communication, sharing of information, etc. The name of the group is <b>CSAP </b>(https://groups.google.com/a/uniroma1.it/d/forum/csap), interested students are invited to join to get access to the folder where code, slides and recordings are located. *N.B. subscriptions from the previous year (AA2020-2021) have been removed. Please subscribe again if interested.* An archive of previous conversations is also available under the _CSAP2020-2021_ label. ---++++ Code Samples & Slides All samples, slides and recordings are located on gdrive and are acessible to member of the CSAP group (see above). The google drive contains also the recordings and other samples from previous AA. ---++ Prerequisites The course is mainly focused on system programming for Unix (Linux) systems. The objective is to make students able to understand, write and modify, programs interfacing with the Linux operating system and its kernel source code. So, it is assumed that attendees are able to write programs (using some language) and have a basic kwowledge of the main components of a modern operating system, such as Linux. Each student should have access to a *Linux* system (a VM is ok), including the compiler, development tools (make, debugger, etc) and man pages. Working on other devices, such as Mac or Windows laptop, while possible, it is not recommended due to suble differences in the compiler suite and OS interface. ---++ Exams The evaluation will be carried out, during the course, through tests quizzes on C and with short programs developed by the students in the classroom. At the end of the course, the students will be able to accept the result obtained with these tests and verbalize, perhaps after an oral discussion. As an alternative, or if the result of the tests is not considered acceptable, a complete individual project, written in C, should be developed on topics pertaining the arguments seen during the course. Thus, there are two options: * Pass the midterms (plus, perhaps, an oral discussion) * Complete the project (as described in the dedicated section). The project (sources and _documentation_) *must be sent by email a few days (5-7) before the date of the exam*. Write/contact me for any doubts, information, etc. ---++ Project The project is an <b>individual </b>work item, which must include *appropriate documentation* (Use cases, functional and non functional requirements, etc). Each academic year will have a <b>different </b>project. This is the [[%ATTACHURL%/Project_for_AA2021-2022.pdf][Project_for_AA2021-2022]] The code and the docs for the project *must be sent by email a few days (3-5) before the session,* where it will be reviewed/discussed. Write me an email for any doubt/question. <span data-mce-mark="1" style="background-color: transparent; color: #630000; font-size: 12.35px; font-weight: bold;">Midterms</span> During the course, there have been three tests, in order to check the knowledge acquired during the lessons. The score obtained for the tests will be part of the final evaluation and could completely substitute the project (see the above section). ---++ Program These are the topics that are planned to be described during the course.Of course mileage may vary, depending on time available, etc. * Programming environment: compiler, make & makefiles, gdb debugger * Recap of the C programming language: variables, costants, operators, expressions, control instructions, functions, pointers, arrays, structures & unions, preprocessor directives * Operating system basics (Linux): processes, filesystem, inter-process communication primitives (signals, pipes, semaphores, shared memory) * Thread programming: pthread management, mutual exclusion, synchronization * Network programming: sockets, raw sockets, sniffers * Software vulnerabilities: buffer overflows, heap corruption, pointer subterfuge, etc. ---++ Textbooks * Daniel P. Bovet, Marco Cesati: Understanding the Linux Kernel * Brian Kernighan, Dennis Ritchie: The C Programming Language (2nd Ed.) ---++++ <a href="OldPages" title="Pages from Previous Years">Pages from Previous AA</a>
This topic: CSaP
>
PastYear
Topic revision: r1 - 2022-10-11 - GiorgioRichelli
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback