An open API service indexing awesome lists of open source software.

https://github.com/sameetasadullah/calculate-factorial-using-fork

A simple C++ program to find factorial of given number using fork system call
https://github.com/sameetasadullah/calculate-factorial-using-fork

cpp factorial fork linux ubuntu

Last synced: about 1 month ago
JSON representation

A simple C++ program to find factorial of given number using fork system call

Awesome Lists containing this project

README

          

Find Factorial Using Fork

### Description
A simple `C++ Program` to find `Factorial` of given number using `Fork System Call`. There are `Two Variations` of the code, you can execute whichever variation you want.
1) Takes `Input in Parent Process` and calculates factorial in child process `(main)`
2) Takes `Input in Child Process` and calculates factorial in parent process `(main0)`

### Manual
1) Use the following command to `Compile the Code`:
```
g++ main.cpp
```

2) Use the following command to `Run the Code`:
```
./a.out
```

### Working Screenshot