Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
MP questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MP questions



Hi,
I have been investigating using MPTask for some code which I porting over
the MacOS which needs to work on 9.x and MacOS X.

1) How do you make a MPTask sleep or resume, I asked the question on carbon
lists and was told it has a performance issues, which will be pain, but how
should I do this. I will be needing to put a MPTask to sleep/resume from
another MPTask.

2) Under MacOS-X are they are any issue for Toolbox APIs calls within
MPTasks. I understand there are for MacOS 9.x, which makes sense from MP
docs, but under MacOS-X, I guess each application is an MPTask, so I
guessing there shouldn't.

3) How does the scheduling policy work under MacOS-X, as the docs imply that
you could get a larger share of the processor under MacOS 9.x, because it
was at the same level of MacOS (Blue) Task.

So under MacOS-X is this the same, or would be different, so would a task
appear in top. I'm guessing it probably maps to a bsd a thread maybe
(pthread maybe, so not appearing in top), and this wouldn't give any more
cpu cycles, as these threads, are usually divided to what ever amount of
cycles have been allocated to process's which the thread belongs to, so have
a large amount wouldn't be too beneficial.

Although I do remember something about how you can make hints to the
scheduler how the thread should be treated as a process levels, so get an
equal shared. (This was on a Solaris system).

Thanks in advance for help with these question.

Mark Thomas
_______________________________________________
mt-smp mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mt-smp
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.