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
- Host: GitHub
- URL: https://github.com/sameetasadullah/calculate-factorial-using-fork
- Owner: SameetAsadullah
- Created: 2022-08-08T00:01:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T01:43:50.000Z (almost 4 years ago)
- Last Synced: 2025-01-21T17:51:08.490Z (over 1 year ago)
- Topics: cpp, factorial, fork, linux, ubuntu
- Language: C++
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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