O C/C++ - priorytet_procesu/priorytet_procesu.c - QNX Momentics IDE
File Edit Refactor Navigate Seąrch Project Run Window Help | |||
; [“3 ▼ y Si |
^ r "S. |
^ St [§D ^ Ę> |
if
{
O 192.168.153.128 atrybuty_procesu Binaries [§)) Includes
& 5(86
[Tej atrybuty_proce: common.mk j_® Makefile kS execl ]£ forkl ]£ fork2
\t£ kod_programu priorytet_procesu k£ spawn ]£ TEST2
( pid = fork()) == 0 ) int prio=getprio(pid);
printf ("Proces gotomny PID: %d \n", getpid()); printf("Priorytet procesu: %d\n",prio); for( i=l; i < k2; i++ )
{
printf("Potomny - krok %d, j= %d\n", i,j) ; sleep (1);
>
exit(0);
*=» i <=»= | |
4 |
► |
[^j, Problems ^j)Tasks § Console 23 \ □ Properties |
x % 11. SlfMP cf E - rt - “ a |
<terminated> priorytet_procesu (C/C++ QNX QConn (IP)] /tmp/priorytet_procesuTatarl4019567678414 on 192.168.153.128 pid 462886 (05.06.14 10:26) | |
Fork. |
> |
Uruchomienie: forkl kl k2 kl - liczba krokow procesu macierzystego k2 - liczba krokow procesu potomnego Proces macierzysty PID: 462886 Macierzysty - krok 1, j = 0 Proces potomny PID: 462887 Priorytet procesu: 10 Potomny - krok 1, j= 0 Macierzysty - krok 2, j= 0 Potomny - krok 2, j = 0 Koniec
m
Writable
Smart Insert
38:55