book
Zitat des Tages
Written by georg on April 12, 2015
We must not ignore small problems, because they eventually grow big.
how to fork
Written by georg on Oktober 31, 2008
Ich glaub ich hab gerade meinen ersten Prozess unter C geforkt. Auch wenn der Beispielcode nichts sinnvolles tut 😉
Die simple Frage war, was hier vom Parent ausgegeben wird. Recht offensichtlich (und durch ausprobieren rauszufinden ist die Lösung wohl 5!
#include <sys/types.h> #include <stdio.h> #include <unistd.h> int value = 5; int main() { pid_t pid; pid = fork(); if (pid == 0) { /* child process */ value +=15; } else if (pid > 0) { /* parent process */ wait (NULL); printf("PARENT: value = %d",value); } }
Operating Systems – Design And Implementation
Written by georg on September 21, 2008
The UNIX system has a command, nice, which allows a user to voluntarily reduce the priority of his process, in order to be nice to the other users. Nobody ever uses it.
—
Operating Systems Design and Implementation (Prentice Hall Software Series)
- Suche
-
Neueste Beiträge
- Unabhängigkeitsrechner 26. April 2024
- Glitch: Umbenennen 23. April 2024
- Glitch: Meetings 20. April 2024
- Immobilienpreise vs. Windkraft 17. April 2024
- Frage in der Überschrift? 16. April 2024
- Glitch: 5G 9. April 2024
- Glitch: Demokratie 7. April 2024
- Goggle 2. April 2024
- KI wird uns Alle retten 1. April 2024
- Glitch: Zeitumstellung 31. März 2024
- Archive
- Schlagwörter5g 10.3 a1 bandbreite bash breitband browser buch DNS facebook glasfaser glitch Google internet IT linux lte microsoft mobil ms openssl opensuse pi pki powershell pv Quote quotes raser script Security shell spam ssl Strom suse tls Treiber walterschlag windows windows 10 wort des tages zitat zitat des tages Zitate