Skip to content

Instantly share code, notes, and snippets.

@hongqn
Created August 11, 2015 07:16
Show Gist options
  • Save hongqn/37cdfde04d0c5a03fede to your computer and use it in GitHub Desktop.
Save hongqn/37cdfde04d0c5a03fede to your computer and use it in GitHub Desktop.
#include <unistd.h>
#include <stdio.h>
#define LOAD 16384
int main() {
int i;
char s[256];
for (i=0; i<LOAD; i++) {
if (vfork()) {
return 0;
}
}
scanf("%s", s);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment