Boost logo

Boost Users :

Subject: Re: [Boost-users] boost multithread use all cores in parallel ?
From: Jack Bryan (dtustudy68_at_[hidden])
Date: 2011-08-14 14:04:36


Thanks
Are there linux commands that can show all cores utilization ?
>From "top" command on linux, I only know the CPU utilization percentage. But, I do not how many cores are used in parallel.
Any help is really appreciated.
thanks
> Date: Sun, 14 Aug 2011 20:00:55 +0200
> From: leo.cacciari_at_[hidden]
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] boost multithread use all cores in parallel ?
>
> Il 08/14/2011 07:38 PM, Jack Bryan ha scritto:
> > thanks for your reply.
> > [...snip...]
> > So, I want to associate each task with a distinct thread and schedule
> > threads as many as possible. Also, try yo make the workload balance
> > among these cores.
> >
> > How can I do that from the point of programming ?
> >
>
> Hi,
> I doubt that you can do this kind of things at application (programming)
> level. Ensuring that all cores are used at best is the responsibility of
> the operating system in the person of its scheduler. This is because
> only the O.S. can be aware of everything running on the system beside
> your program. Thus I believe the answer to your question is not. AFAIK
> the kernel scheduler in Linux does a god job, even if I never had the
> occasion of using it on that many cores :)
>
>
> --
> Leo Cacciari
> Aliae nationes servitutem pati possunt populi romani est propria libertas
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
                                               



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net