raj_delphi 0 Posted May 30, 2022 (edited) 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 May 30, 2022 by raj_delphi Share this post Link to post
raj_delphi 0 Posted June 9, 2022 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