By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,918 Members | 2,258 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,918 IT Pros & Developers. It's quick & easy.

Dynamically Linked Libraries

P: n/a
Hi All,

In a Unix system (I am using Solaris, but not limited to it), who will
dynamically linked libraries been linked to a multithreaded process?

Will it have a different instance for every single thread, or just one
copy and shared amough all threads?

I have some static member variables in the class suggested that every
single threads is having their own instance. Is that true?

Thanks in advance.
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Kwan wrote:
Hi All,

In a Unix system (I am using Solaris, but not limited to it), who will
dynamically linked libraries been linked to a multithreaded process?
The answer to that question is platform-specific, has nothing to do with
the C++ language, and is off-topic in this newsgroup.
Will it have a different instance for every single thread, or just one
copy and shared amough all threads?

I have some static member variables in the class suggested that every
single threads is having their own instance. Is that true?

The C++ language knows nothing of threads.

For the first question, look for a newsgroup with 'unix' in the title.
For the rest, look for a newsgroup with 'thread' in the title.

HTH,

- Adam

--
Reverse domain name to reply.

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.