linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Claudio Fontana <claudio.fontana@gmail.com>
To: £ukasz <blurrpp@yahoo.com>
Cc: linux-assembly@vger.kernel.org
Subject: Re: Appendix: multithreating HOWTO ? :)
Date: Sun, 23 Aug 2009 15:35:44 +0200	[thread overview]
Message-ID: <4A9145B0.50507@gmail.com> (raw)
In-Reply-To: <556680.44596.qm@web50309.mail.re2.yahoo.com>

£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 wariables

You 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).


--
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-08-23 13:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-22 16:48 multithreating HOWTO ? :) £ukasz
2009-08-23 10:29 ` Appendix: " £ukasz
2009-08-23 13:35   ` Claudio Fontana [this message]
2009-08-23 15:04     ` Frank Kotler
2009-08-23 15:23       ` Claudio Fontana
2009-08-23 16:17         ` £ukasz
2009-08-23 19:18           ` Frank Kotler
2009-08-23 21:02           ` linuxasm
2009-08-23 19:13         ` £ukasz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A9145B0.50507@gmail.com \
    --to=claudio.fontana@gmail.com \
    --cc=blurrpp@yahoo.com \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).