Jump to content
Sign in to follow this  
raj_delphi

How to set omnithread affinity?

Recommended Posts

How to set the affinity for TOmniThread/TOmiTaskControl, it is keep on resetting the default affinity value (utilizing all CPU's).

I tried setting Environment.Process.Affinity.AsString,  but this value also keep on changing to default (255), it is happening when the OmiThread starts, I see it have many properties to set the affinity, but I'm not sure how to set it.

Edited by raj_delphi

Share this post


Link to post

This issue has been resolved by setting <TOtlthreadPool>.Affinity.AsMask  = <affinity value>, by setting this whenever the OTLThreadPool starts is SCHEDULE, the assigned affinity take in place. and this is not resetting the system affinity as well (which I set during the start of the program)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×