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 > Applications > Safari: Is it a multi-threaded app?

Safari: Is it a multi-threaded app?
Thread Tools
Dedicated MacNNer
Join Date: Mar 2002
Location: NYC
Status: Offline
Reply With Quote
Jul 13, 2005, 05:22 PM
 
I read an article from a Mac news website about developers with Macintel dev machines claiming that those Pentium 4 3.6 Ghz Macintel beats the pants off their PowerMac Dual G5 2.0 GHz with ease which is very noticable esp. surfing the net with Safari because Safari isn't multi-threaded so the Dual G5 is actually at a disadvantage.

My question is: Is it true that Safari is not multi-threaded? Apple has been singing the praises of dual processing for years , if what those developers said is true, so why isn't Safari multi-threaded? Apple is the posterboy for dual processing.
PowerMacG4 MDD Dual867Mhz, MacOSX 10.5.5 Leopard
2GB Ram, 128mb Radeon 9800 Pro, 80GB HD & 160GB HD
MacBook Black: Core2Duo 2.2Ghz, MacOSX 10.5.5 Leopard
4GB Ram & 250GB HD
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Jul 13, 2005, 06:09 PM
 
It's because a) it's hard, and b) Apple didn't write the original code for the Safari renderer. Safari uses multiple threads (that's easy to check), but it does the rendering on one thread. There's an experimental (aka broken) multithreaded image decoder in Safari 2.
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 13, 2005, 07:16 PM
 
The difference between Safari on a dual 2 and even the 3.6 GHz Mactel should be negligible, except for the most CPU bound tests. Real world tests are bandwidth limited.
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Jul 13, 2005, 08:02 PM
 
I disagree. If that were true then Omniweb, Safari, Camino, and IE should all be the same apparent speed. Since I can see clear differences between some of them... bandwidth doesn't appear to be the sole limiting factor.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jul 13, 2005, 08:11 PM
 
Safari is multithreaded. Almost all network apps are, because if they weren't then you wouldn't be able to do anything while you were waiting for network traffic to come in.

The question is, is anything other than the networking aspect threaded? That's hard to say. Some kinds of tasks lend themselves better to threading than others, and so there's not much way to tell without looking at the code. Then again, WebKit is open-source, so you could probably examine the code to find out stuff like that.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jul 13, 2005, 08:34 PM
 
I'd be surprised if the difference is that noticeable. Surfing the Web doesn't exactly pin the processor on my G4 PowerBook, so it doesn't really make sense for the processor to be that much of a bottleneck on a G5.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 13, 2005, 08:44 PM
 
Originally Posted by Catfish_Man
I disagree. If that were true then Omniweb, Safari, Camino, and IE should all be the same apparent speed. Since I can see clear differences between some of them... bandwidth doesn't appear to be the sole limiting factor.
They're different speeds because they all use different rendering engines. The same Safari on a dual 2 and a 3.6 GHz P4 should be indistinguishable for most uses.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jul 13, 2005, 10:48 PM
 
For every article that claims such massive speed gains, there is an article which claims the opposite. Truth be told, we're unlikely to know anything for certain for a long time indeed, because posting any form of objective measurement would be in violation of Apple's NDA.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Jul 14, 2005, 03:45 AM
 
Certainly Safari is multithreaded - it has a bunch of threads open. Just look at the Activity Monitor. The report about Safari being so much faster on Apple's PC developer boxes has to be viewed as ridiculous. If microprocessor performance were the constraining factor, then Safari would be pegging your Mac's processor right now. Safari barely hits my processors when accessing pages. As others have surmised, the most likely cause of the reported speedy performance of these PCs is their high performance drives. Remember those early "developer" reports that claimed G5s were running Virtual PC at native PC speeds? Arm yourself with common sense.

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Jul 14, 2005, 04:14 AM
 
Originally Posted by Big Mac
Remember those early "developer" reports that claimed G5s were running Virtual PC at native PC speeds?
No, I don't remember them. VirtualPC didn't run on G5s.
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Jul 14, 2005, 04:52 AM
 
Originally Posted by TETENAL
No, I don't remember them. VirtualPC didn't run on G5s.
There were such rumors, and the fact that VPC didn't run at all at that time is the reason why I placed the .

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
   
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 07:48 AM.
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