Lab: Fork Bomb

Short Description

The purpose of this lab is to demonstrate how a simple programmer error can impact the availability of a computing resource.

Goals

The goals of this lab are to help you understand

The Lab

  1. Boot any of your images and log in as any user.
  2. Start at least two terminals.
  3. Create a space to work.
  4. Download the basic program that runs a long computation.
  5. Print the process id.
  6. The fork command
  7. But I want a program that runs 10 copies not 1.
  8. Create the fork bomb.
  9. Defending against a fork bomb