User Tools

Site Tools


os:lab04
Return to Home page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
os:lab04 [2019/10/23 23:06]
zioskenz
os:lab04 [2019/11/06 08:17] (current)
zioskenz
Line 7: Line 7:
 ==== Exercise 01: System call fork, exec, system ==== ==== Exercise 01: System call fork, exec, system ====
  
-Si riporti l'​albero di generazione dei processi a seguito +Report the //control flow graph// (CFG) and the //process generation tree// for the following ​program
-dell'​esecuzione del seguente tratto di codice ​C. + 
-Si indichi inoltre che cosa esso produce su video e per quale +In addition, indicate what it produces in output on the screen and for which reason.
-motivo.+
  
 <code c lab04_e01.c>​ <code c lab04_e01.c>​
Line 39: Line 38:
 ==== Exercise 02: System call fork, exec, system ==== ==== Exercise 02: System call fork, exec, system ====
  
-Si riporti l'​albero di generazione dei processi a seguito +Report the //control flow graph// (CFG) and the //process generation tree// for the following ​program
-dell'​esecuzione del seguente tratto di codice ​C. + 
-Si indichi inoltre che cosa esso produce su video e per quale +In addition, indicate what it produces in output on the screen and for which reason.
-motivo.+
  
 <code c lab04_e02.c>​ <code c lab04_e02.c>​
Line 70: Line 68:
 ==== Exercise 03: System call fork, wait, exec, system ==== ==== Exercise 03: System call fork, wait, exec, system ====
  
-Un file contiene delle stringhe logicamente raggruppate in +file contains strings logically grouped into distinct sets
-insiemi distinti+Any set of strings indicates a Unix/​Linux ​command and the related parameters
-Ogni insieme di stringhe indica un comando ​Unix/​Linux ​e i +Each set is terminated with the string ​"​end"​. 
-relativi parametri+The following is an example of correct ​file:
-Ogni insieme e' terminato dalla stringa ​"​end"​. +
-Il seguente e' un esempio corretto di file:+
  
 <code bash> <code bash>
Line 84: Line 80:
 </​code>​ </​code>​
  
-Si osservi chese si preferiscesi puo' supporre la stringa +Observe thatif you preferyou can assume that the string ​"​end" ​is not present in the file, and it can be substituted with the end-of-line character ''​\n'​' to indicate the end of the strings associated with certain command.
-"​end" ​non sia presente nel file e sia invece il carattere di +
-fine riga '​\n'​ a indicare la fine delle stringhe associate +
-a un certo comando.+
  
-Scrivere un programma chericevuto il nome del file sulla +Write a program thatafter receiving the name of the file through the command lineexecutes the Unix/Linux command listed in the file by using
-riga di comandoesegua i comandi ​Unix/linux indicati +  * the system call ''​system'', ​executing one command after another 
-nel file utilizzando+  * the system call ''​exec''​, executing a command every seconds ​(you can decide with version of the ''​exec''​ to use).
-  * la system call ''​system'', ​eseguendo un comando dopo l'​altro +
-  * la system call ''​exec'' ​eseguendo un comando ogni secondi ​(e' ​facolta' ​decidere quale versione della exec utilizzare).+
  

If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/os/lab04?rev=1573024653&do=diff
/web/htdocs/www.skenz.it/home/data/pages/os/lab04.txt · Last modified: 2019/11/06 08:17 by zioskenz

Privacy Policy