flat assembler
Message board for the users of flat assembler.

Index > Heap > limit CPU usage of a program

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 9002
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
is the any switch prefer easy and simple,

to prevent a program using up whole 100% CPU?

or a switch to allow program to use 1 core or 2 cores, out of 4 virtual cores?

thank you.
Post 22 Dec 2013, 03:15
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
sleepsleep,
Which operating system are you referring to?

Either way, I think polling and events have worked for centuries Very Happy


Can you be more specific with what you want to achieve. It maybe out there already... Wink
Post 22 Dec 2013, 03:46
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 18:58; edited 1 time in total
Post 22 Dec 2013, 05:23
View user's profile Send private message Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 730
tthsqe
this is simple:
find the process under the 'Processes" tab in windows task manager. Right click on it and go to "Set Affinity...". There is an API function for this as well.
Post 22 Dec 2013, 11:02
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 9002
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
let me try the setaffinity =)
it seems working, now CPU usage is 50% for that minerd.

will monitor the result running 2 miner with setaffinity setting, don't know if it would increase khash/s or not, trying.

thanks tthsqe.

typedef,
windows 7, 8,,
Post 22 Dec 2013, 14:01
View user's profile Send private message Reply with quote
Fixit



Joined: 22 Nov 2012
Posts: 161
Fixit
Post 22 Dec 2013, 14:45
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.