0

i've a DLL to manage pysical and my app to lead my DLL and UI.

manage pysical is not a problem and it work nice. My UI is okay with somes buttons and both work good too. But when i'm adding a timer or another who needed refresh, i've a problem into the pysical management. i think i need to fix conflis of UI or cost of refresh UI or isolate UI.

my app is on realTime mode.

How to reserve a core for one thread on windows? is not realy my problem.

if i need to reserve a cpu core (just one) for my application without any other interact of windows process into this core. Can we do this ?

or can we change the windows default load balancing mode ? ("Actually OS is capable of load balancing your cores/processors" How Can I Set Processor Affinity in .NET?)

or how can isolate correctly my UI ?

Thanks !

Community
  • 1
  • 1
Florian J
  • 9
  • 3
  • What if there were such a feature and every app that started before yours had already used it? It's unclear why you would need this - what's the underlying requirement? If your threads are busy, Window will generally not boot them off the core they are running on unless there are no idle cores to schedule work on. – 500 - Internal Server Error Aug 11 '15 at 10:18
  • i want reserve a core to manage pysical interaction, not for UI, i just want to refresh timer in my UI but it's causes somes physical "bugs", without refresh timer, i don't have any problems – Florian J Aug 11 '15 at 10:24
  • 2
    Typical [XY problem](http://www.perlmonks.org/?node=XY+Problem) – Eser Aug 11 '15 at 10:25
  • This is not normally something I would recommend, but have you tried increasing the priority on your background thread? In any case it sounds like something else is going on that causes those hick-ups that you hint at. You should boil it down to a reproducible test case, if you can. – 500 - Internal Server Error Aug 11 '15 at 10:30
  • ahah :p my X problem is manage pysical, and my Y is to refresh UI, just that. I search just a solution or why not a new solution with your remarks – Florian J Aug 11 '15 at 10:33
  • my app is on realTime mode. i think i need to reduce or isolate refresh UI cost but i don't know how, actually I've just a timer, and i refresh it in an other thread, sorry my english is not my strength – Florian J Aug 11 '15 at 10:43
  • It depends what "update UI" involves. If it's too much work, perhaps do it in steps? It's hard to know how to respond based on the information you've given here. – Robinson Aug 11 '15 at 12:35
  • actually my update UI dot a get to my dll by collect a float (coresponding to a time), i convert this float into timespan (this is my estimater time) and i've a stopwatch managed by UI (my actual time) and : lbTime.Text = formatTime(actualTime.Elapsed) + " / " + formatTime(estimaterTimeSpan); this just one interrupt my pysical management i don't know how. – Florian J Aug 11 '15 at 12:54

4 Answers4

0

if we can optimize load balancing for fx processor (https://support.microsoft.com/en-us/kb/2646060) can we stop automatic windows load balancing cpu ?

Florian J
  • 9
  • 3
0

maybe to change number of processor into windows information can force windows to run with one core (and other app) ? this is just a idea.

Florian J
  • 59
  • 8
0

during my research I came across this information : when GC thread kicks in, worker threads will be suspended.

how can i control GC ? or can i to have more control on this?

i love Q/R ;) i've seen here how to control my GC.

This improvement has increase performance a lot. But i want more

Community
  • 1
  • 1
Florian J
  • 59
  • 8
-1

Run this application in an virtual machine ? so you can set the required hardware for it and it wont interfere with other stuff ?

wrickdotnl
  • 42
  • 4
  • i can't use virtual machine, it's not enough reactive, i use physical interactions into us. and on a VM i'll be always windows problems – Florian J Aug 11 '15 at 11:44