Message581

Author ype
Recipients
Date 2002-03-02.19:52:13
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=125722

I don't think this is a bug in Jython.
The python docs specify nothing about thread safety of 
standard types and the threading module is explicitly 
recommended for inter thread communication.

CPython's central lock happens to enforce the thread
safety of it's implementation of standard types.

In Java the thread safety of standard types can be obtained
by using synchronized methods. In many JVM's synchronized
methods take more time to execute than non synchronized
ones, so this would slow down Jython.
Btw. the (internal) dictionaries used for namespaces are
thread safe in Jython.
History
Date User Action Args
2008-02-20 17:17:02adminlinkissue521701 messages
2008-02-20 17:17:02admincreate