add
/* probably more include files than we really need */
fork.c |
pipe to do IPC after fork example
/****************************************************************
fork.htm |
wait and fork functions
|
license.html |
add
Software License
|
makefile |
CC = gcc
CFLAGS = -Wall -g
COMPILE = $(CC) $(CFLAGS) -c
SRCS := $(wildcard *.c) ../common/restart.c
OBJS := $(patsubst %.c,%.o,$(SRCS))
|
mkzombie.c |
makes a zombie visible running ps command with lifetime of 60 seconds
#include <stdio.h>
old_logfile.html |
add
Process Ring Simulator Log for joe speigle generated Tue Mar 09 20:04:24 GMT 2004
Process Ring Simulator Log for joe speigle generated Tue Mar 09 20:04:24 GMT 2004
- code: code for the program
- one: default configuration
- two: Change After fork from parent to child
- three: Change After fork from parent to either
- four: Change After fork from parent to random
- five: Change Choose Process from FCFS to Random
- six: Change Scheduling from no preempt to round robin with a quantum of 5 and Choose Process from FCFS to Random
- seven: Repeat the experiment above with a quantum of 2 and see if it behaves differently
- eight: Change Print Atomic to Print Not Atomic with probability 0.1
- nine: Insert a wait(NULL) call before the fprintf statement
- ten: Change Print Atomic to Print Not Atomic with probability 0.1 and insert a wait(NULL) call before the fprintf statement
|
|
prexit.c |
(stevens) print a description of child's exit status after wait or waitpid call
#include <sys/types.h>
sigchld.c |
(stevens) macros WIFEXIT checks on dead child; how to handle terminated child with handler
#include "calld.h"
simplefork.c |
add
/* http://vip.cs.utsa.edu/usp/ dr.robbins utsa computer science "unix systems programming" */
wait.txt |
wait and wiatpid functions
waitpid has 3 args: pid_t pid, int * statloc, int options
wait has 1 arg: int * statloc
one arg in all cases is int * statloc)
an int pointer!!!!
| --->upload your article
|
User submitted category site links |
|
(None) | -->submit a page from your site dealing with fork to the sirfsup! web directory for listing | | | | | | |