• Navigation überspringen
  • Zur Navigation
  • Zum Seitenende
Organisationsmenü öffnen Organisationsmenü schließen
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
  • FAUZur zentralen FAU Website
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Suche öffnen
  • English
  • Campo
  • StudOn
  • FAUdir
  • Stellenangebote
  • Lageplan
  • Hilfe im Notfall
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
Menu Menu schließen
  • Lehrstuhl
    • Team
    • Aktuelles
    • Kontakt und Anfahrt
    • Leitbild
    • 50-jähriges Jubiläum
    Portal Lehrstuhl
  • Forschung
    • Forschungsbereiche
      • Betriebssysteme
      • Confidential Computing
      • Eingebettete Systemsoftware
      • Verteilte Systeme
    • Projekte
      • AIMBOS
      • BALu
      • BFT2Chain
      • DOSS
      • Mirador
      • NEON
      • PAVE
      • ResPECT
      • Watwa
    • Projektkampagnen
      • maRE
    • Seminar
      • Systemsoftware
    Portal Forschung
  • Publikationen
  • Lehre
    • Sommersemester 2025
      • Applied Software Architecture
      • Ausgewählte Kapitel der Systemsoftware
      • Betriebssystemtechnik
      • Projekt angewandte Systemsoftwaretechnik
      • System-Level Programming
      • Systemnahe Programmierung in C
      • Systemprogrammierung 1
      • Verteilte Systeme
    • Wintersemester 2024/25
      • Betriebssysteme
      • Middleware – Cloud Computing
      • Systemprogrammierung 2
      • Verlässliche Echtzeitsysteme
      • Virtuelle Maschinen
      • Web-basierte Systeme
    Portal Lehre
  • Examensarbeiten
  1. Startseite
  2. Extern

Extern

Bereichsnavigation: Lehre
  • Betriebssysteme
    • Vorlesung
      • Folien
    • Übung
      • Seminar
      • Aufgaben
      • Aufgabe 0: C++ Streams
        • Aufgabe 1: Ein-/Ausgabe
          • Aufgabe 2: Unterbrechungen
            • Aufgabe 3: Pro-/Epilog
              • Aufgabe 4: Kontextwechsel
                • Aufgabe 5: Zeitscheiben
                  • Aufgabe 6: Synchronisation
                    • Aufgabe 7: Anwendung
                      • Assembler Crashkurs
                        • C++ Crashkurs
                          • Entwicklungsumgebung
                            • FAQ
                              • Ruhmeshalle
                              • Evaluation

                              Aufgabe 5: Zeitscheiben

                              Static Public Member Functions | List of all members
                              GuardedScheduler Class Reference

                              Guarded interface to the Scheduler used by user applications. More...

                              #include <syscall/guarded_scheduler.h>

                              + Inheritance diagram for GuardedScheduler:
                              [legend]
                              + Collaboration diagram for GuardedScheduler:
                              [legend]

                              Static Public Member Functions

                              static void ready (Thread *that)
                               Include a thread in scheduling decisions. More...
                               
                              static void exit ()
                               (Self-)termination of the calling thread. More...
                               
                              static void kill (Thread *that)
                               Kills the passed thread. More...
                               
                              static void resume ()
                               Issue a thread change. More...
                               

                              Detailed Description

                              Guarded interface to the Scheduler used by user applications.

                              Implements the system call interface for class Scheduler. All methods provided by this class are wrappers for the respective method from the base class, which provide additional synchronization by using the class Guarded.

                              Member Function Documentation

                              static void GuardedScheduler::ready ( Thread *  that)
                              inlinestatic

                              Include a thread in scheduling decisions.

                              This method will register a thread for scheduling. It will be appended to the ready queue and dispatched once its time has come.

                              Parameters
                              thatThread to be scheduled
                              Note
                              This method is equal to the correspondent method in base class Scheduler, with the only difference that the call will be protected by a Guarded object.
                              Todo:
                              Implement method
                              static void GuardedScheduler::exit ( )
                              inlinestatic

                              (Self-)termination of the calling thread.

                              This method can be used by a thread to exit itself. The calling thread will not be appended to the ready queue; a reschedule will be issued.

                              Note
                              This method is equal to the correspondent method in base class Scheduler, with the only difference that the call will be protected by a Guarded object.
                              Todo:
                              Implement method
                              static void GuardedScheduler::kill ( Thread *  that)
                              inlinestatic

                              Kills the passed thread.

                              This method is used to kill the Thread that. For OOStuBS, it is sufficient to remove that from the ready queue and, thereby, exclude the thread from scheduling. For MPStuBS, a simple removal is not sufficient, as the thread might currently be running on another CPU core. In this case, the thread needs to be marked as dying (a flag checked by resume prior to enqueuing into the ready queue) and the executing CPU core needs to be notified.

                              Note
                              The thread should be able to kill itself.
                              See also
                              Dispatcher::isActive
                              Todo:
                              Adapt method (for MPStuBS)
                              Note
                              This method is equal to the correspondent method in base class Scheduler, with the only difference that the call will be protected by a Guarded object.
                              Todo:
                              Implement method
                              static void GuardedScheduler::resume ( )
                              inlinestatic

                              Issue a thread change.

                              This method issues the change of the currently active thread without requiring the calling thread to be aware of the other threads. Scheduling decisions, i.e. which thread will be run next, are made by the scheduler itself with the knowledge of the currently ready threads. The currently active thread is appended to the end of the queue; the first thread in the queue will be activated (to implement the FIFO policy).

                              Note
                              This method is equal to the correspondent method in base class Scheduler, with the only difference that the call will be protected by a Guarded object.
                              Todo:
                              Implement method

                              The documentation for this class was generated from the following file:
                              • syscall/guarded_scheduler.h
                              Friedrich-Alexander-Universität
                              Erlangen-Nürnberg

                              Schlossplatz 4
                              91054 Erlangen
                              • Impressum
                              • Datenschutz
                              • Barrierefreiheit
                              • Facebook
                              • RSS Feed
                              • Xing
                              Nach oben