Claudio Fontana wrote:
£ukasz wrote:in appendix i want to just precize problem. Broblem is how to write, create etc, shared memory for parent and child proceses, where they could for example exchange wariablesYou are using fork. Fork is used to create new processes. You probably want clone instead, to create new threads and specify which resources to share between the two threads. man 2 clone sys_clone is 120 (0x78).
Is that a 64-bit sys_call number? I thought they'd changed that on us. AFAIK, __NR_clone is 56 these days... and "syscall" replaces int 0x80. A real "curve ball" to asm programmers! Well, they *told* us not to do it that way. :)
Best, Frank -- To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- Follow-Ups:
- Re: Appendix: multithreating HOWTO ? :)
- From: Claudio Fontana
- Re: Appendix: multithreating HOWTO ? :)
- References:
- Appendix: multithreating HOWTO ? :)
- From: £ukasz
- Re: Appendix: multithreating HOWTO ? :)
- From: Claudio Fontana
- Appendix: multithreating HOWTO ? :)
- Prev by Date: Re: Appendix: multithreating HOWTO ? :)
- Next by Date: Re: Appendix: multithreating HOWTO ? :)
- Previous by thread: Re: Appendix: multithreating HOWTO ? :)
- Next by thread: Re: Appendix: multithreating HOWTO ? :)
- Index(es):
![]() |