Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYSC4001 A2 Part II

Students: 101270837, 101266280

Build and Run

make
./p1

How it works

  • p1 forks and execs p2
  • p1 increments counter, displays multiples of 3
  • p2 waits until counter > 100 then starts
  • Both terminate when counter > 500

Parts

  1. Fork - concurrent processes
  2. Exec - separate executables
  3. Wait - coordinated termination
  4. Shared memory - multiplier and counter
  5. Semaphores - protect shared memory

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages