On CNET: Need holiday gift ideas?
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 34 of 116:
Next »
« Previous
hmmm . . ..
"A thread is a thread. There's no guarantee that The two or four threads from my software will get run at the same time on different cores."

Yes and no. They can set their affinity, but I think that's more a suggestion and not a guarantee.

"But why should multi threaded software be sharing time with system operations that most people don't even no exsist or low cpu intensive tasks. Vista can run on one core fine, single thread programs can share it ie the firefoxes the word ect."

Why not? AFAIK, there's no reason to treat any process as being any more important than the others.

Besides, having single threaded programs share a single core pretty much negates the reason for having multiple cores anyways - you want these programs to act as independently as possible, so if one manages to take up a lot of CPU on one core the others remain responsive because they are on other cores.

The idea is that even if you're not running any multithreaded applications, you can still take advantage of multiple cores for multiple single threaded applications.

"And finally the task of writing a multithreaded program in which the threads share the program workload equally is very difficult."

Agreed, especially in C++ which was never designed for concurrent programming in the first place. Java and C# are a bit better, and F# looks very promising for developers.

This is one area where the language can make a difference, because some languages already have the constructs for creating threaded applications, while others don't.

"There is no guarantee on how windows is going to prioritize and run your threads."

And frankly there never will be. OSes have been steadily moving away from guaranteeing things.

You're just going to have to code like everybody else - assume that nothing is guaranteed, and design the threads to be as independent as possible and try hard not share any resources.

If your threads are sharing a lot of resources, then perhaps you should rethink your reasons for making them separate threads in the first place.
Posted by: CobraA1   Posted on: 12/19/07 You are currently: a Guest | Members login | Terms of Use
Reply to Story No further replies to this post will be accepted.

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

As my rep says, 2008 will be great!!!!  Mike Cox | 12/18/07
Heh...  techboy_z | 12/18/07
9.95 -  Wolfie2K3 | 12/19/07
Bell  professordnm | 12/19/07
10!!!  JLHenry | 12/19/07
When will Bill's big fear come true?  FlatAffect | 12/20/07
Say again Commi?  waldens1 | 08/13/09
way off  itchy8me | 07/31/09
Microsoft Will Hail The Launch Of Its Most Successful OS To Date  itanalyst | 12/18/07
They also pointed out that the iPhone  GuidingLight | 12/18/07
I don't know if I could  Michael Kelly | 12/18/07
I am in agreement with you there  GuidingLight | 12/18/07
I don't know if Ubuntu Fiesty Fawn came out in 2007, but OLPC did (just)  stevey_d | 12/31/07
Jesus  usmcdvldg@... | 12/18/07
Wish I could talk  Blogsworth | 12/18/07
ReactOS is coming along well  stevey_d | 12/31/07
Right on the mark!  ba943@... | 12/19/07
My predictions.  No_Ax_to_Grind | 12/18/07
Re: #8 & #9  Michael Kelly | 12/18/07
Further thoughts...  No_Ax_to_Grind | 12/18/07
Those who don't want to be "evangelists"  Confused by religion | 12/18/07
Is that true?  No_Ax_to_Grind | 12/18/07
I agree that a number of overseas MVPs were not re-awarded this year  Confused by religion | 12/18/07
Not too accurate  dfolk | 12/18/07
Shows how little you know about the MVPs  Confused by religion | 12/19/07
Word is the Head of the MVP program gave his notice  No_Ax_to_Grind | 12/20/07
MVP defined  devlin_X | 12/31/07
Agree some, disagree some.  CobraA1 | 12/18/07
Yes and no...  No_Ax_to_Grind | 12/18/07
Ah yes, that's the applications . . .  CobraA1 | 12/18/07
No  usmcdvldg@... | 12/19/07
It's a bit more complex than that . . .  CobraA1 | 12/19/07
YES YES  usmcdvldg@... | 12/19/07
hmmm . . ..  CobraA1 | 12/19/07
hmm  usmcdvldg@... | 12/20/07
more about threads . . .  CobraA1 | 12/20/07
WOW!  lag1980 | 12/19/07
Okay, smart guy: How does Vista NOT take advantage of multiple cores? (nt)  CobraA1 | 12/19/07
Ok, so here is my point...  lag1980 | 12/19/07
In other words, nothing revolutionary  CobraA1 | 12/19/07
OMG  usmcdvldg@... | 12/19/07
A fact of life  usmcdvldg@... | 12/19/07
Re: Number 9  Confused by religion | 12/18/07
You misunderstand Milly  No_Ax_to_Grind | 12/18/07
I understand perfectly  Confused by religion | 12/18/07
Care to publish said code of conduct  No_Ax_to_Grind | 12/18/07
re: Care to publish said code of conduct  MowGreen | 12/19/07
Re: Re: Number 9  none none | 12/18/07
Hmmm  HypnoToad72 | 12/18/07
Yikes  DarkPhoenixFF4 | 12/18/07
Huh?  El Tonto con Suerte | 12/19/07
Half and half  usmcdvldg@... | 12/19/07
language standard  stevey_d | 12/31/07
Wrong!  Ole Man | 12/19/07
Gawd help us ALL if Hilary wins!  jbaviera@... | 12/20/07
Well thought out  stevey_d | 12/31/07
What's with ZDNet and wanting the iPhone to enter the Enterprise?  CobraA1 | 12/18/07
Because it has potential  Michael Kelly | 12/18/07
LONG Laundry List...  Wolfie2K3 | 12/19/07
Edit Office docs on an iPhone? Who cares!  Fred Fredrickson | 12/24/07
good point  stevey_d | 12/31/07
Why do you need that?  Bruizer | 01/06/08
What's with ZDNet?  grail@... | 12/19/07
windows 7: 2008  Raiker | 12/18/07
here is my prediction  Linux Geek | 12/18/07
In that spirit  Michael Kelly | 12/18/07
ROTFL! (nt)  GuidingLight | 12/18/07
On the contrary...  techboy_z | 12/18/07
Well, No evil per say  usmcdvldg@... | 12/18/07
Or better yet  usmcdvldg@... | 12/18/07
There speaks the man  Blogsworth | 12/18/07
Poor baby  usmcdvldg@... | 12/19/07
naturally occuring doesn't mean good  voska1 | 12/19/07
Actaully he is about dead on  Linux User 147560 | 12/19/07
using *any* oil is the problem  stevey_d | 12/31/07
Raise you  stevey_d | 12/31/07
Here is a better prediction  GuidingLight | 12/18/07
...  DarkPhoenixFF4 | 12/18/07
Well now, if you bothered to poke around a bit  GuidingLight | 12/18/07
'nuff said  lag1980 | 12/19/07
And my follow up...  No_Ax_to_Grind | 12/18/07
owch  usmcdvldg@... | 12/18/07
How about this prediction  usmcdvldg@... | 12/18/07
Haven't you got  Blogsworth | 12/18/07
LOL  usmcdvldg@... | 12/19/07
If it theirs, then its theirs.  No_Ax_to_Grind | 12/19/07
I say its not  usmcdvldg@... | 12/19/07
And listen  usmcdvldg@... | 12/19/07
You aren't a judge...  No_Ax_to_Grind | 12/20/07
Ok  usmcdvldg@... | 12/20/07
Cute  Michael Kelly | 12/18/07
RE: Cute  bfilipiak@... | 12/19/07
One IMPORTANT thing missing ....  kd5auq | 12/18/07
Can't happen unless.....  jeffdickey | 12/24/07
Look for Vista Lite!  TripleII | 12/18/07
windows xp second edition?  aesirloke@... | 12/18/07
Why tarnish the XP name...  mrOSX | 12/19/07
RE: Windows XP second edition  bfilipiak@... | 12/19/07
The difference is  Michael Kelly | 12/19/07
I dunno . . .  JLHenry | 12/19/07
Message has been deleted.  i8thecat | 12/19/07
RE: The real predictions (#5)  bfilipiak@... | 12/19/07
BE carefull  usmcdvldg@... | 12/19/07
Microsoft release Longhorn in 2010  Randalllind | 12/19/07
RE: Microsoft Predictions for 2008: Games group housecleaning continues (Microsoft in 2008: 10 Predictions)  zeusx64@... | 12/19/07
RE: Microsoft Predictions for 2008: Games group housecleaning continues (Microsoft in 2008: 10 Predictions)  zeusx64@... | 12/19/07
RE: Microsoft Predictions for 2008: Games group housecleaning continues (Microsoft in 2008: 10 Predictions)  zeusx64@... | 12/19/07
iPhone & ActtiveSync  Ethical_Loner | 12/19/07
Yawn  Bearcat_z | 12/19/07
I Predict Not ONE No_Ax Prediction Will Come True  itanalyst | 12/19/07
Except  usmcdvldg@... | 12/19/07
My rep sais...  sykandtyed | 12/19/07
Vista Home Premium v Fiji  ben.rattigan | 12/20/07
I'll Give It A 6.5 = IPhone Home E.T.  michaelleo@... | 12/20/07
Head of the MVP program  Bitzie | 01/02/08
RE: Microsoft Predictions for 2008: Games group housecleaning continues (Microsoft in 2008: 10 Predictions)  soooosweeet | 04/14/08

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

Enterprise Applications

  • Check out some of the easiest and most powerful ways to boost productivity while saving money on your application infrastructure. See ZDNet's comprehensive Enterprise Application resource center, now!
  • New Online Dashboard
  • Read about top issues IT decision-makers face every day, plus get cost effective solutions to real life IT problems. Oracle Topline