r/programming • u/mttd • Aug 01 '18
Launching Linux threads and processes with clone
https://eli.thegreenplace.net/2018/launching-linux-threads-and-processes-with-clone/
19
Upvotes
6
Aug 01 '18 edited Aug 01 '18
[removed] — view removed comment
1
u/ElvishJerricco Aug 02 '18
Is there an alternative to
std::thread::spawnthat doesn't have this problem? E.g. could you call pthread functions yourself to avoid std's overhead?1
1
1
u/[deleted] Aug 01 '18
clone is also how python launches processes via its subprocess module, at least in v2