In winform my controls [taskbar and progressbar] become
inactive when heavy processing is going in background, how
to avoid this via multithreading
Answer Posted / brian dixon
Luckily most machines nowadays have multi-core processors or
multiple processors. If the machine in question has only a
single-core processor and nothing else, then there is no
good answer. If the machine is 'modern' and had dual- or
more processors (or cores), then the answer is that your
heavy processing is best forked off into a separate thread
while the GUI is maintained by the first thread. This
allows one processor to maintain good latency in processing
the GUI (and its controls) while the other processor(s) do
the processing. End of story.
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is the difference between oop and sop?
What do you mean by polymorphism?
Describe inheritance and non-inheritance of a derived class?
Give any criteria when you use an abstract class and an interface?
Tell me something about abstract classes?
What is the order of call of constructors in inheritiance?
What is the super keyword?
What is inheritance in java?
Explain the use of Vtable and what are the various problems to override the functions?
what is full form OOP?
What are the methods required to create changes in subclasses?
Can a class in java be inherited from more than one class?
What is the function of dynamic typing?
How does abstraction differ from encapsulation.
What are the major differences between late and dynamic binding?