[Gambas-user] New feature in Task Class

Yahoo olivier.cruilles at ...614...
Fri Mar 13 15:18:53 CET 2015


To limit a process to use only specific cpu core I use 'taskset ' command on linux and 'cpulimit' command to limit cpu usage.

This one is interesting too:
http://blog.scoutapp.com/articles/2014/11/04/restricting-process-cpu-usage-using-nice-cpulimit-and-cgroups

Does it that you ask me ?

Olivier Cruilles

> Le 13 mars 2015 à 09:41, Benoît Minisini <gambas at ...1...> a écrit :
> 
> 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.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> ------------------------------------------------------------------------------
> 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