| Nom du processus | Durée d’éxécution en UT | Ordre de soumission | 
|---|---|---|
| P1 | 3 | 3 | 
| P2 | 2 | 1 | 
| P3 | 2 | 2 | 
| P2 | 
| Nom du processus | Durée d’éxécution en UT | 
|---|---|
| P1 | 3 | 
| P2 | 1 | 
| P3 | 2 | 
| P3 | 1 | 
        ps :
            ps -eafps -eo pid,ppid,stat,commps -eo pid, ppid, stat, command, nous l'affichage ci-contre. 
  PID    PPID STAT COMMAND
    1       0  Ss   /sbin/init splash
    2       0  S    [kthreadd]
    ...     ...  ...  ...
397958       2  I<   [kworker/0:0H-events_highpri]
459678       1  S    dbus-launch --autolaunch 
459679       1  Ss   /usr/bin/dbus-daemon 
459681       1  Sl   kwalletd5
460366     136  Sl   /usr/bin/codium -b /home/etienne/Téléchargements/Edt_CLAVE.ics  
460369    1587  Sl   /usr/bin/codium -b /home/etienne/Documents/cours_processus.tex  
461367     136  Sl   /usr/bin/codium -b /home/etienne/Téléchargements/test.txt  
554030    7877  Sl   /opt/google/chrome/chrome
554031    7877  Sl   /opt/google/chrome/chrome
554052    1511  R+   ps -eo pid,ppid,stat,command
            
        ps -eo pid, ppid, stat, command et on obtient un
            affichage dont on donne ci-contre un extrait. ps ? Justifier la réponse.
                ps ?
                    Donner les autres commandes qui ont été exécutées à partir de cette application.
                
$ ps -eo pid,ppid,stat,command
PID     PPID    STAT    COMMAND
1       0       Ss      /sbin/init
...     ...     ...     ...
1912    1908    Ss      bash
2014    1912    Ss      bash
1920    1747    Sl      gedit
2013    1912    Ss      bash
2091    1593    Sl      /usr/lib/firefox/firefox
5437    1912    Sl      python programme1.py
5440    2013    R       python programme2.py
5450    1912    R+      ps -eo pid,ppid,stat,command
                
            
        ps -eo pid, ppid, stat, command et on obtient un
            affichage dont on donne ci-contre un extrait. python programme1.py et
                    python programme2.py ont été exécutées.
                python programme1.py et python
                    programme2.py finira avant l’autre ?
$ ps -eo pid,ppid,stat,command
PID     PPID    STAT    COMMAND
1       0       Ss      /sbin/init
...     ...     ...     ...
1912    1908    Ss      bash
2014    1912    Ss      bash
1920    1747    Sl      gedit
2013    1912    Ss      bash
2091    1593    Sl      /usr/lib/firefox/firefox
5437    1912    Sl      python programme1.py
5440    2013    R       python programme2.py
5450    1912    R+      ps -eo pid,ppid,stat,command
                
            
        | Programme 1 | 
| Verrouiller fichier_1 | 
| Calculs sur fichier_1 | 
| Verrouiller fichier_2 | 
| Calculs sur fichier_1 | 
| Calculs sur fichier_2 | 
| Calculs sur fichier_1 | 
| Déverrouiller fichier_2 | 
| Déverrouiller fichier_1 | 
| Programme 2 | 
| Verrouiller fichier_2 | 
| Verrouiller fichier_1 | 
| Calculs sur fichier_1 | 
| Calculs sur fichier_2 | 
| Déverrouiller fichier_1 | 
| Déverrouiller fichier_2 | 
| D1 | D2 | D3 | D4 | D5 | |
| M | A | ||||
| Tableur | A | M | |||
| SGBD | M | A | A | ||
| CAO | M | A | M | A |