LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-30-2005, 03:46 AM   #1
yakotey
LQ Newbie
 
Registered: Jun 2005
Posts: 22

Rep: Reputation: 0
dlopen in multi-threading environnement


Hi,

It looks like threads can't make dlopen at the same time...

Is that true?
 
Old 06-30-2005, 05:40 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
I tried googling for `dlopen thread safety', no luck. I found an interesting link, though: http://gcc.gnu.org/ml/java/2001-10/msg00107.html (beware of the date).

In any case, I find it likely that dlopen need to mutex something (kernel vmem tables? Loading a symtab into ram?).

I haven't investigated it thoroughly, so I don't know--but whatever the case may be, you can always just
Code:
def my_dlopen(foo):
    mutex.lock()
    library_dlopen(foo)
    mutex.unlock()
hth --Jonas
 
Old 06-30-2005, 08:36 AM   #3
yakotey
LQ Newbie
 
Registered: Jun 2005
Posts: 22

Original Poster
Rep: Reputation: 0
thanks a lot jonaskoelker.
that's exactely what i was thinking.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp client with support for fxp, multi-threading and... NonSumPisces Linux - Networking 1 08-28-2004 01:18 PM
help! perl multi-threading? eph Programming 0 05-03-2004 09:15 PM
multi-threading with signals TedMaul Programming 0 04-17-2004 07:35 PM
Multi-threading rch Programming 3 03-30-2003 10:27 PM
Multi threading Mohsen Programming 5 03-01-2003 11:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration