HOW TO HANG A COMPUTER

HOW TO HANG A COMPUTER (FORK BOMB)

Everyone is having this thing in their mind to do something different rather than doing work in a systematic way. So, why not we try something different today . As we all know computers are the machines to hang out our problems; so what if....  we hang our computer or we can try this trick on some other PC.

So, here is the solution.... All you need is the linux platform or if you are using window then try out this program with C software .

The below written code is to hang your PC

Code

#include<stdio.h>
#include<unistd.h>
int main()
{
while(1)
{
fork();
}
}

Steps : What to do

1: In your linux terminal open a file with any name using 
vim ra.c

2: Write this code in this file and save it using this command
:wq

3: Compile this code using this command
make ra

4: Execute this program using this command
./ra

No comments:

Post a Comment