Platforms to show: All Mac Windows Linux Cross-Platform
FAQ.How to know how many CPUs are present?
Feedback.
Answer: Try this function:
Example:
Feedback.
Answer: Try this function:
Example:
Function GetCPUCount() As integer
#if TargetCarbon
Declare Function MPProcessors Lib "CarbonLib" () as integer
#else
Declare Function MPProcessors Lib "MPLibrary" () as integer
#endif
Return MPProcessors()
End Function
Notes: Your app will than need that library to launch on Classic. To avoid this the MBS plugin checks if this library is available and return 1 if it's not available.Links
MBS Realbasic Chart Plugins - Nachhilfe in Mendig