Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how to make processes and they do different assign tasks.i have written the code
- #include<iostream>
- using namespace std;
- int main()
- int status=0;
- {
- for(int i=0;i<5;i++)
- {
- if(fork()==0)
- { cout<<"do some thing"<<endl; }
- else
- {wait(status); }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement