Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > MP programming with Java And/Or ObjC?

MP programming with Java And/Or ObjC?
Thread Tools
Forum Regular
Join Date: Apr 2001
Location: DC
Status: Offline
Reply With Quote
Apr 5, 2001, 12:48 PM
 
Does anyone know of any multiprocessing programming tutorials using either ObjC or Java?

Thanks,
-m
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Apr 5, 2001, 03:05 PM
 
I think if you just run things as threads then they will be multiprocessor aware by default. I'm not entirely sure though.
     
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Apr 6, 2001, 01:58 AM
 
Yes, Java uses native threads, and takes advantage of MP machines automatically. Sun has several tutorials on threads at http://java.sun.com, though they don't discuss MP specifically.
     
mefogus  (op)
Forum Regular
Join Date: Apr 2001
Location: DC
Status: Offline
Reply With Quote
Apr 6, 2001, 07:29 AM
 
Actually, I was hoping to find some code specifically geared towards the G4 MP using OSX. I have done thread programming before, so the theory is understood.
     
Forum Regular
Join Date: Feb 2001
Location: Portland, OR, USA
Status: Offline
Reply With Quote
Apr 6, 2001, 10:59 AM
 
Like Angus and JavaMac are saying, if you write multithreaded code the OS can schedule different threads on different CPUs without you having to do anything else. So what kind of information are you looking for for G4's specifically?

The assembly level coordination instructions (unnecessary if you use a higher level like Java, mutexes, NSLock)? Specifics about G4 cache coherency / cache size / etc to try to optimize your app to avoid cache aliasing during multiprocessing? Altivec code, maybe?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2