Hello guys,

I'm new to Linux programming, but I'm very excited to be a pro in this field.
I do have programming experience in Windows, so I'm familiar with programming in C/C++ and even in C#.

I've read in books and on internet that forking childprocesses is more common than creating threads, I don't know if that is still so. But wouldn't be a problem if the parent process is a big software and you fork numerous childprocesses from it? Cause according to man and other articles, fork() creates an exact copy of the executable image from the parents (I also read that functionlibrary and alike are NOT copied too).

So isn't it more usefull to use threads instead, because you just want a small portion of code running on another thread. Otherwise it's like running Writer of OpenOffice a hundred times, well that won't be the purpose I think, right?

This quesiton raises up since I was playing with handling a lot of client tcp/ip connections using fork().

Thank you.