Giter VIP home page Giter VIP logo

docs's Introduction

Practical course: Advanced Systems Programming in C/Rust -- SoSe 2023

Chair website

Course Information

  • Language: English
  • Type: Practical training
  • Module: IN0012, IN2106, IN2128
    • (This course is not offered to IN2397)
  • SWS: 6
  • ECTS Credits: 10
  • Prerequisites:
    • We don't have any compulsory prerequisites, but we prefer students to be proficient in the basic concepts of operating systems and systems programming (C/C++/Rust).
    • Preferred knowledge or equivalent to the lectures:
      • Fundamentals of Programming (IN0002)
      • Introduction to Computer Architecture (IN0004)
      • Basic Principles: Operating Systems and System Software (IN0009)
  • Course Material:
    • The Linux Programming Interface โ€“ Michael Kerrisk
    • Linux System Programming โ€“ Robert Love
  • TUM Online: You must register for this course in TUM Online before the course starts
  • Student note: Compulsory enrollment after two weeks of the matching outcome; students who fail to de-register in this period will be registered for the exam

Course Details

This course covers some of the most important aspects of systems programming. More specifically, we will cover the following topics through a set of programming assignments over the semester:

  • Kernel and system calls: How programs interact with the operating system, how to implement some system calls yourself in assembly
  • File I/O: Learn about file descriptors, direct i/o, memory mapped i/o, page cache etc.
  • Concurrency and synchronization: Learn about different threading primitives, i.e., mutexes, concurrent data structure design, and how they are implemented
  • Processes: Different system calls related to process handling like fork(), execve(), wait()
  • Memory management: How virtual memory, heap, stack, and how malloc() works
  • Networking: How to handle network protocols, efficient ways to implement servers
  • Performance: How to bring out the performance of the hardware
  • Virtualization: Hypervisors, containers, cgroups
  • Compilers: How to convert high-level languages into binary code and how to manipulate them

This course consists of a set of modules related to different aspects of systems programming. For each of these modules, there is a dedicated assignment that will help students dig deeper into the concepts and get familiar with them with actual, useful, hands-on tasks. There is also a weekly Q&A meeting where we answer students' questions and discuss the specific goal of each assignment. The students will be required to perform tasks within a time frame (around 2-3 weeks depending on the task) and submit their work in the online evaluation system. The submitted workpieces will then be evaluated, and based on that, a grade will be calculated for each assignment.

Objectives

  • Introduction to a variety of operating system concepts
  • Techniques for debugging and optimization of low-level code
  • Good understanding of memory- and resource management

Meeting place

  • Preliminary meeting: February 6th (Mon), 2023 11:00 AM CET online (zoom)

Tasks

Please refer to the respective task repositories (that are released on the published date) for detail. The schedule may change. All deadlines are at 16:00 (CEST).

Task Organizer Published on Deadline Points Slide Video
Introduction Masanori 17.04.23 01.05.23 0 link Lecture
System Calls Sebastian 24.04.23 08.05.23 30 link Lecture
File I/O Babis 08.05.23 22.05.23 30 link, FUSE Lecture, FUSE
Processes Jiyang 15.05.23 29.05.23 30 link Lecture
Concurrency Francisco 22.05.23 05.06.23 30 link Lecture
Memory Management Sebastian 05.06.23 19.06.23 30 link Lecture
Networking Jiyang 12.06.23 26.06.23 30 link Lecture
Performance Tianchi 19.06.23 03.07.23 40 link Lecture
Virtualization Babis 26.06.23 10.07.23 40 link Lecture, Task
Compilers Martin 03.07.23 17.07.23 40

Note that

  • 100% points lost if private tests detect cheating or we find a solution tries to game the system (modifying test scripts, etc.)
  • 50% points lost if normal private tests fail

Allowed Libraries

In general, only standard libraries can be used. In addition to this, the following libraries are available for use.

Depending on the task, the use of additional libraries may be allowed or the use of libraries (including standard libraries) may be restricted. Please refer to the task description for details.

For a reference of the standard library, check out:

Environment

All executables must run on Linux, x86_64. Therefore, we strongly recommend having a local Linux x86_64 environment for development. Note that some tasks involve loading kernel modules and configuring kernel parameters, including cgroups, and some operations are not allowed in some container (docker) environments. While we only guarantee the execution of tasks in a local Linux 86_64 environment, if you are using different OSes, you can try to use a virtual machine. More specifically,

  • Windows: WSL2 would work. Also, Hyper-V, VirtualBox, and VMware are available.
  • Mac: If you use Intel Mac, Docker for Mac would work. If you use Arm mac (M1/M2), then you can try to use utm to emulate the entire x86_64 environment, though the overhead of full system emulation is huge, and some tests may not pass. So we recommend preparing other environments.

Some tasks are doable in Github Codespaces, which are free for students. However, some tasks are not doable as they require the kernel's permission.

Each task gives more details information on runnable environments. Note that only the test results on CI count toward grading.

Grades

Grades are computed as follows:

From To Grade
0 120 5.0
121 135 4.7
136 150 4.3
151 165 4.0
166 180 3.7
181 195 3.3
196 210 3.0
211 225 2.7
226 240 2.3
241 255 2.0
256 270 1.7
271 285 1.3
286 300 1.0

Slack workspace

We will use Slack for all communication. Please enroll in our Slack workspace using your official TUM email address.

Other resources

Contact

We strongly prefer Slack for all communications. For any further questions/comments, please contact the course organizer(s):

docs's People

Contributors

mmisono avatar cmainas avatar martin-fink avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.