realbasic-nug
[Top] [All Lists]

Threads

To: <realbasic-nug@lists.realsoftware.com>
Subject: Threads
From: "Miller, James T." <James.T.Miller@JHUAPL.edu>
Date: Thu, 31 Jul 2008 10:49:19 -0400
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <mailman.3026.1217477886.19703.realbasic-nug@lists.realsoftware.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thread-index: AcjzHJx7cZMXRzbQSoSYhAdQ1fAIEA==
Thread-topic: Threads
User-agent: Microsoft-Entourage/12.11.0.080522
Does not seem to be a lot of information around on threads in RB.  So here
are a couple simple question:

1- If I run multiple threads (2 or 3) on a Mac with 4 CPUs, does each thread
execute on its own CPU, i.e., is there a processing boost to using threads
in this case.

2 - What happens if a thread (or several threads) calls a method that is not
in the thread, e.g., a method defined in the window class that initiated the
thread?  In particular, are such methods re-enterant, i.e., if one thread
calls the method while the other is still using the same method, will the
processing in the method execute properly for both calls (seems to in my
testing).



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>