Warum Threads

  • Anfangs gab es nur langsame Computer ­> serielles Arbeiten sinnvoll
  • Später kamen Multiuser, Timesharing, Multitasking (Unix 197x)
  • Warum Multitasking / Multithreading?
    • kürzere Ausführungszeiten, bessere Antwortzeiten, Computer besser Ausgenutzt
    • Threads sind effizienter inerhalb von Prozessen
  • Heutige Computer sind Sammlung von Aufgaben
  • Threads füren zu kürzeren Ausführungszeiten, besseren Antwortzeiten (fühlt sich besser an!), Computer ist besser ausgenutzt
  • Befor es Threads gab wurde Prozess forking gemacht
  • Threads sind effizienter innerhalb von Prozessen
  • Sie werden auch "Light Weight Processes" ­ LWP genant

Das Thread Modell:

  • prozesseigene Ressourcen: globale Daten, Programm, Instruktionen etc.
  • threadeigene Ressourcen: Stack, PC / SC, Register

PThread Definition

Ein Thread wird inerhalb einer Funktion Ausgeführt.

 kreire_thread(function, argument)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use <fn>...</fn> to insert automatically numbered footnotes.
  • You can use the <go> tags just like the <a> for nicer urls.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.