Server commander
#12
Actually it's a problem with how Linux handles creating new processes. It does so by using fork(), which duplicates the current process, and then exec(), which replaces the current binary with another binary. It works pretty well for traditional programs, but doesn't cooperate too well with threads - only the thread calling the fork() function is copied, the rest of the threads are thrown away in the copy of the executable, which means that if any of those threads held any mutexes, those mutexes will be locked forever in the child process. If one of those mutexes just happens to be something important, such as CRT's mutex for memory allocations, we're in trouble.
Reply
Thanks given by:


Messages In This Thread
Server commander - by JuliB - 12-21-2015, 08:26 PM
RE: Server commander - by NiLSPACE - 12-21-2015, 08:39 PM
RE: Server commander - by JuliB - 12-21-2015, 08:50 PM
RE: Server commander - by NiLSPACE - 12-21-2015, 08:55 PM
RE: Server commander - by JuliB - 12-21-2015, 09:01 PM
RE: Server commander - by NiLSPACE - 12-21-2015, 09:11 PM
RE: Server commander - by JuliB - 12-21-2015, 09:17 PM
RE: Server commander - by NiLSPACE - 12-21-2015, 09:23 PM
RE: Server commander - by JuliB - 12-21-2015, 09:27 PM
RE: Server commander - by NiLSPACE - 12-21-2015, 09:49 PM
RE: Server commander - by jan64 - 12-21-2015, 10:50 PM
RE: Server commander - by xoft - 12-21-2015, 11:02 PM
RE: Server commander - by NiLSPACE - 12-21-2015, 11:03 PM
Alternate - by JuliB - 12-23-2015, 07:55 PM
RE: Server commander - by xoft - 12-23-2015, 08:25 PM
RE: Server commander - by JuliB - 12-23-2015, 09:43 PM



Users browsing this thread: 1 Guest(s)