[Gambas-user] New feature in Task Class
Yahoo
olivier.cruilles at ...614...
Fri Mar 13 18:08:18 CET 2015
maybe this can help but I'm not C developer.
https://www.kernel.org/doc/Documentation/cgroups/cpusets.txt
Cordialement,
Olivier Cruilles
Email: olivier.cruilles at ...614...
> Le 13 mars 2015 à 10:24, Tobias Boege <taboege at ...626...> a écrit :
>
>> On Fri, 13 Mar 2015, Beno?t Minisini wrote:
>> Le 13/03/2015 14:07, Yahoo a ?crit :
>>> Hello Benoit,
>>>
>>> Do you think if it's possible to implement a way to limit a Task to
>>> use only a number of cpu and better will be to choose witch cpu a
>>> Task is allowed to use ?
>>>
>>> I know that is possible to limit at the execution of a process the
>>> number and more exactly witch CPUs the process could use to run but
>>> not if it is possible to do that for a process Fork.
>>>
>>> In my idea, I will limit the main process of my program on 1 specific
>>> cpu and if I start Task to limit these Task to use specific others
>>> CPUs.
>>>
>>>
>>> Thank you in advance.
>>>
>>> Olivier Cruilles
>>
>> A task is a forked process, so if you know how to do that
>> programmatically (which API to use), just tell me.
>
> You can specify a fixed set of CPUs a thread may run on using
> sched_setaffinity(2) but my manpage lists it in the "Linux Programmer's
> Manual" which may indicate that it is not portable? Since every process
> is a thread, this will also work with forks.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list