Mailing Lists: Apple Mailing Lists

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

Re: More multiprocessing questions




On Jul 18, 2006, at 2:09 , email@hidden wrote:

On Mon, 17 Jul 2006, Doug Zwick wrote:

As others have posted, a multi-CPU system can expose concurrency bugs in your code that cannot cause trouble on a single CPU/core system. If your users

I would amend that slightly: I've never heard of a concurrency bug that *cannot* cause trouble on a single CPU system.

Well, you can easily figure out such a scenario. For instance, I have code that instantiates a set of worker threads whose size is equal to the number of processors in the system - this is to exploit all of the computing power in the system. Well, I'm not experiencing any kind of concurrency problem since the code of each worker is simple, but it's clear that in a single CPU scenario I have a single thread that cannot deadlock with itself, while in a multiple CPU scenario I have multiple threads that could.


I agree that in most case it's just a matter of increased risk.

--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
http://www.tidalwave.it/blog - email@hidden
mobile: +39 348.150.6941 - fax: +39 027.005.105.36


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

This email sent to email@hidden
References: 
 >Re: More multiprocessing questions (From: Doug Zwick <email@hidden>)
 >Re: More multiprocessing questions (From: 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.