• 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
    • 50-jähriges Jubiläum
    Portal Lehrstuhl
  • Forschung
    • Forschungsbereiche
      • Betriebssysteme
      • Confidential Computing
      • Embedded Systems Software
      • Verteilte Systeme
    • Projekte
      • AIMBOS
      • BALu
      • BFT2Chain
      • C-ResPECT
      • DOSS
      • NEON
      • PAVE
      • Watwa
    • Seminar
      • Systemsoftware
    Portal Forschung
  • Publikationen
  • Lehre
    • Wintersemester 2026/27
      • Aktuelle Entwicklung in Verteilten und Objektorientierten Betriebssystemen (für Bachelor-/Masterarbeit)
      • Betriebssysteme
      • Middleware – Cloud Computing
      • Projekt angewandte Systemsoftwaretechnik
      • Systemprogrammierung 2
      • Virtuelle Maschinen
      • Web-basierte Systeme
    • Sommersemester 2026
      • Applied Software Architecture
      • Betriebssystemsicherheit
      • Betriebssystemtechnik
      • System-Level Programming
      • Systemnahe Programmierung in C
      • Systemprogrammierung 1
      • Verlässliche Echtzeitsysteme
      • Verteilte Systeme
    Portal Lehre
  • Examensarbeiten
  1. Startseite
  2. Extern

Extern

Bereichsnavigation: Lehre
  • Betriebssysteme
    • Evaluation

    Aufgabe 7: Anwendung

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

    Guarded interface to Bell objects used by user applications. More...

    #include <syscall/guarded_bell.h>

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

    Public Member Functions

    unsigned int residual ()
     Returns the residual waiting time. More...
     
    void set (unsigned int ms)
     Set the bell's waiting time. More...
     
    void sleep ()
     Sleep until the bell rings. More...
     

    Static Public Member Functions

    static void sleep (unsigned int ms)
     Sleep until the bell rings. More...
     

    Detailed Description

    Guarded interface to Bell objects used by user applications.

    Implements the system call interface for class Bell. 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 GuardedBell::sleep ( unsigned int  ms)
    inlinestatic

    Sleep until the bell rings.

    The bell needs to be configured via Bell::set() prior to calling this method and should not have rung already. (see Bell::residual()).

    Optional:
    Implement Method
    Note
    This method is equal to the correspondent method in base class Bell, with the only difference that the call will be protected by a Guarded object.
    unsigned int GuardedBell::residual ( )
    inline

    Returns the residual waiting time.

    Will use Bellringer::residual().

    Returns
    Time in milliseconds until the bell rings
    Optional:
    Implement Method
    Note
    This method is equal to the correspondent method in base class Bell, with the only difference that the call will be protected by a Guarded object.
    Optional:
    Implement method
    void GuardedBell::set ( unsigned int  ms)
    inline

    Set the bell's waiting time.

    This method can be used to set the desired waiting time.

    Parameters
    msTime in milliseconds; will be passed to Bellringer::job()
    Optional:
    Implement Method
    Note
    This method is equal to the correspondent method in base class Bell, with the only difference that the call will be protected by a Guarded object.
    void GuardedBell::sleep ( )
    inline

    Sleep until the bell rings.

    The bell needs to be configured via Bell::set() prior to calling this method and should not have rung already. (see Bell::residual()).

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

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

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