Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Discover multiple processors programmatically?



Hi there,

Is there an API that would allow me to discover the availability of more then one physical processor cores? If so, is it somewhat standard -- would it work on say, Linux? I am parallelizing an application and would like to have two- and four-processor versions of some computationally intense code.

I found something about multiprocessing services on Apple's site http://developer.apple.com/documentation/Carbon/Conceptual/ Multitasking_MultiproServ/03tasks/chapter_3_section_1.html#// apple_ref/doc/uid/TP40000853-TP30000267-BABCEEHG but I wasn't able to use it.

Anyone know of such an API, particularly one that is someone platform- independent?

Thanks.

-- ivan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.