I have a function let's call it foo() that performs some operations on matrices. If I call the function in a console application it needs 1 second to return the results. if I call it in a Windows form application (button click, start a new thread, call foo() from the thread), the function needs 3 seconds to return. with the same inputs, and the same outputs obviously. I think it is because the thread handling the windows form is still active, how do I stop it, or slow down it giving less priority?
質問する
129 次