Groups | Search | Server Info | Login | Register
Groups > comp.lang.c.moderated > #436
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Newsgroups | comp.lang.c.moderated |
| Subject | Re: C Multithreading variable memorization |
| Date | 2013-05-01 19:19 -0500 |
| Organization | JJ's own news server |
| Message-ID | <clcm-20130501-0001@plethora.net> (permalink) |
| References | <clcm-20130415-0001@plethora.net> |
On 2013-04-16, andreaesposito77@gmail.com <andreaesposito77@gmail.com> wrote: > Hi all, > can someone explain me how variables are stored in a multithreading > program? AFAIK mutlithreading is not part of the C standard. If you asked this in comp.lang.c you could probbly get shouted at. > Is there an outline? trpically "auto" variables are private to your thread and globals and static variables are shared betwen threads. library functions that were implemented using static variables are not "thread safe" and hee are often thread safe variants privided > Does it depends on compiler or SO? some vendors provide a mechanism for some static variables to be made private to the thread. check your compiler documentation > How is the memory divided? not sure what you mean. -- ⚂⚃ 100% natural --- news://freenews.netfront.net/ - complaints: news@netfront.net --- -- comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must have an appropriate newsgroups line in your header for your mail to be seen, or the newsgroup name in square brackets in the subject line. Sorry.
Back to comp.lang.c.moderated | Previous | Next — Previous in thread | Next in thread | Find similar
C Multithreading variable memorization andreaesposito77@gmail.com - 2013-04-15 20:00 -0500
Re: C Multithreading variable memorization Francis Glassborow <francis.glassborow@btinternet.com> - 2013-04-25 17:23 -0500
Re: C Multithreading variable memorization Barry Schwarz <schwarzb@dqel.com> - 2013-04-25 17:23 -0500
Re: C Multithreading variable memorization Herbert Rosenau <os2guy@pc-rosenau.de> - 2013-04-25 17:23 -0500
Re: C Multithreading variable memorization Jasen Betts <jasen@xnet.co.nz> - 2013-05-01 19:19 -0500
Re: C Multithreading variable memorization Dag-Erling Smørgrav <des@des.no> - 2013-05-08 12:37 -0500
Re: C Multithreading variable memorization Robert Wessel <robertwessel2@yahoo.com> - 2013-05-08 12:37 -0500
csiph-web