[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 110: Undefined array key "cached"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 111: Undefined array key "normal"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 112: Undefined array key "total"
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3391: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3395: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Cabrillo College Linux Classes • View topic - Questions for tomorrow

Questions for tomorrow

Introduction to UNIX/Linux

Questions for tomorrow

Postby Marcos Valdebenito on Tue Nov 11, 2008 4:07 pm

Could somebody please post the answers for the quizz tomorrow?
thanks
Marcos Valdebenito
 
Posts: 56
Joined: Wed Sep 03, 2008 7:26 pm

Re: Questions for tomorrow

Postby Michael Wicherski on Tue Nov 11, 2008 4:27 pm

1. What command shows a list of the processes running

ps (use ps -l or ps -ef for more information about processes)

2. Name four states a process can be in

active, waiting, orphan, zombie

3. What is the difference between fork and exec system calls.

fork:

makes a duplicate copy of the parent process; creating the child process which has a different PID than parent

exec:
overlays child process with instructions of command and executes


simple terms!

fork: clones parent into a child process with new pid
exec: executes the process/commands
Michael Wicherski
 
Posts: 140
Joined: Mon Sep 01, 2008 5:23 am

Re: Questions for tomorrow

Postby Rich Simms on Tue Nov 11, 2008 9:50 pm

One little change ... for Q2) states should be: S=Sleeping, R=Running, T=Stopped, Z=Zombie

- Rich
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm

Re: Questions for tomorrow

Postby Michael Wicherski on Wed Nov 12, 2008 1:21 am

[quote="Rich Simms"]One little change ... for Q2) states should be: S=Sleeping, R=Running, T=Stopped, Z=Zombie

- Rich[/quote]

k, digested! :mrgreen:
Michael Wicherski
 
Posts: 140
Joined: Mon Sep 01, 2008 5:23 am

Re: Questions for tomorrow

Postby Marcos Valdebenito on Wed Nov 12, 2008 5:45 pm

Thanks
Marcos Valdebenito
 
Posts: 56
Joined: Wed Sep 03, 2008 7:26 pm


Return to CIS 90 - Fall 2008

Who is online

Users browsing this forum: No registered users and 0 guests

cron