Ask a Question related to Mac Programming, Design and Development.
-
Mick #1
Advice on threads - Mac OS 9
What's the best approach for writing a multi-threaded app for Mac OS 9?
What I have in mind is a main thread that collects some information and
a separate thread to wake up and save the info to file every 30 seconds.
I'm currently using CodeWarrior 8, but don't see much in the way of
examples. The only thread related info I see in the documentation set
is windows only.
Thanks in advance,
Mick.
Mick Guest
-
threads in perl
Hi, I need help in simple threaded solution. How can I join the active thread? After I was started the thread I want him to join itself at the... -
Threads falling apart
Hi folks, recently my NR often fails to put news threads together. Is it just my NR or is there still something wrong with the News <-> Mail... -
webrick, threads, and i/o
if i want to write a webrick application that mounts many servlets do i need to be concerned that, if one of the servlets blocks on i/o, the entire... -
Objects, threads and so on
Hi all, I'm quite new to Perl so please bear with me :) I've experience in Delphi so I thought I knew about objects... it seems I don't :( ... -
Max worker threads
Looking at the server characteristics I suppose this worker process threads is in consequential as far as your database is concerned. They seem to... -
David Phillip Oster #2
Re: Advice on threads - Mac OS 9
In article <3F01D4D7.6070303@hotmail.com>,
Mick <mickster00@hotmail.com> wrote:
Here is something I wrote 4 years ago:> What's the best approach for writing a multi-threaded app for Mac OS 9?
>
> I'm currently using CodeWarrior 8, but don't see much in the way of
> examples. The only thread related info I see in the documentation set
> is windows only.
<http://groups.google.com/groups?selm=oster-1710992329040001%40adsl-63-192-132-81.dsl.snfc21.pacbell.net>
David Phillip Oster Guest
-
Frederick Cheung #3
Re: Advice on threads - Mac OS 9
On Tue, 1 Jul 2003, David Phillip Oster wrote:
> In article <3F01D4D7.6070303@hotmail.com>,
> Mick <mickster00@hotmail.com> wrote:
>>> > What's the best approach for writing a multi-threaded app for Mac OS 9?
> >
> > I'm currently using CodeWarrior 8, but don't see much in the way of
> > examples. The only thread related info I see in the documentation set
> > is windows only.
> Here is something I wrote 4 years ago:
>
> <http://groups.google.com/groups?selm=oster-1710992329040001%40adsl-63-192-132-81.dsl.snfc21.pacbell.net>
I'll add that MP (preemptive threads) are also an option.
There are restrictions on what calls you can make from such a thread and
you need to think carefully about what you do to avoid race conditions and
such. There is sample code on the developer web side that will allow to
use open transport from an mp thread. (search for otmp).
You can send carbon events from an mp thread which is in general much more
fun than using queues/semaphores.
Documentation on both kinds of threads can be found on the developer web
site.
Fred
Frederick Cheung Guest



Reply With Quote

