Good example of fork() in a program?

Good example of fork() in a program?

Сообщение HarryJenkins » 17 апр 2018, 12:34


I got some homework about the 'fork()' POSIX system call, and one of the assignments was to write a small example program in C or C++ that uses this system call.But I don't if my professor will appreciate this. In fact, I can't think of a good example of how fork() would be useful without implementing some kind of inter proccess communication.Anyways, I'm just asking for your guys opinions, is a fork bomb a valid form of an example program, and if not, do you have any other ideas?

Please help.

I didn't find the right solution from the Internet.

Company Promotional Video

Сообщений: 9
Зарегистрирован: 31 мар 2018, 12:30

Вернуться в Программа

Кто сейчас на форуме

Зарегистрированные пользователи: Google [Bot]