Jump to content

darrellclrk15

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Favorite Area of Science
    computer

darrellclrk15's Achievements

Lepton

Lepton (1/13)

0

Reputation

  1. i have no idea what recursion means? can you explain it?
  2. In this exercise, you will attempt to estimate the number of stack frames that the kernel will permit a process to populate the system's main memory. To illustrate this, think of an infinite recursive program. One might wonder how many times will this program be allowed to spawn, i.e, how many stack frames can this program push onto the stack before either 1. the system runs out of memory or 2. the kernel kills this rouge process (the latter is more likely to happen in a *nix based system). To this end, write a simple C program that enables you to give a rough estimate on the number of stack frames pushed on the stack. Clearly, you are expected to write an infinite recursive function and an associated driver to get things started, either in separate modules or in a single C module. Your task now would be to figure out how many times this recursive function was called before the program was terminated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.