Click here to Skip to main content
15,887,446 members
Home / Discussions / C#
   

C#

 
GeneralRe: Abstracts: can I do better than this? Pin
MollyTheCoder5-Apr-10 17:00
MollyTheCoder5-Apr-10 17:00 
GeneralRe: Abstracts: can I do better than this? Pin
PIEBALDconsult5-Apr-10 17:39
mvePIEBALDconsult5-Apr-10 17:39 
AnswerRe: Abstracts: can I do better than this? Pin
petercrab30-Dec-09 17:00
petercrab30-Dec-09 17:00 
QuestionHow to use in c# SqlHierarchyId.GetDescendant(null,null)? [modified] Pin
dimitarmarinov30-Dec-09 2:21
dimitarmarinov30-Dec-09 2:21 
QuestionInvoke a function every time that a function is been added to my event Pin
bonzaiholding30-Dec-09 1:17
bonzaiholding30-Dec-09 1:17 
AnswerRe: Invoke a function every time that a function is been added to my event Pin
OriginalGriff30-Dec-09 2:01
mveOriginalGriff30-Dec-09 2:01 
AnswerRe: Invoke a function every time that a function is been added to my event Pin
petercrab30-Dec-09 16:56
petercrab30-Dec-09 16:56 
QuestionThreads, speed up calculations Pin
Renven30-Dec-09 1:01
Renven30-Dec-09 1:01 
Hi,
i will be appreciated if someone could help me in this situation:

my PC: Pentium 2Core 2.1GHz 4Gb(Ram) windows 7 x64

The problem that I can not solve by myself is how to speed up calculations.
My method runs 850-970ms. method created for image processing (crops image ,recognize coped image and put calculated value into matrix)
When i am using threads (in this example 2 threads)
ThreadStart ts = new ThreadStart(ThreadOneP);
ThreadStart ts2 = new ThreadStart(ThreadTwoP);
Thread thread1 = new Thread(ts);
Thread thread2 = new Thread(ts2);
thread1.Start();
thread2.Start();
thread1.Join();
thread2.Join();

method takes 900-1070ms.

How to speed up that method will take about 400ms? it is possible?

P.S sorry for my English Smile | :)
AnswerRe: Threads, speed up calculations Pin
Rob Philpott30-Dec-09 1:17
Rob Philpott30-Dec-09 1:17 
GeneralRe: Threads, speed up calculations Pin
Renven30-Dec-09 1:31
Renven30-Dec-09 1:31 
AnswerRe: Threads, speed up calculations Pin
Luc Pattyn30-Dec-09 2:01
sitebuilderLuc Pattyn30-Dec-09 2:01 
AnswerCODE Pin
Renven30-Dec-09 2:22
Renven30-Dec-09 2:22 
GeneralRe: CODE Pin
Luc Pattyn30-Dec-09 3:00
sitebuilderLuc Pattyn30-Dec-09 3:00 
GeneralRe: CODE Pin
Renven30-Dec-09 3:27
Renven30-Dec-09 3:27 
GeneralRe: CODE Pin
Renven30-Dec-09 3:44
Renven30-Dec-09 3:44 
GeneralRe: CODE Pin
Luc Pattyn30-Dec-09 3:49
sitebuilderLuc Pattyn30-Dec-09 3:49 
GeneralRe: CODE Pin
harold aptroot30-Dec-09 3:49
harold aptroot30-Dec-09 3:49 
GeneralRe: CODE Pin
Daniel Grunwald30-Dec-09 3:50
Daniel Grunwald30-Dec-09 3:50 
GeneralRe: CODE Pin
Renven30-Dec-09 4:03
Renven30-Dec-09 4:03 
GeneralRe: CODE Pin
Luc Pattyn30-Dec-09 4:38
sitebuilderLuc Pattyn30-Dec-09 4:38 
GeneralRe: CODE Pin
Daniel Grunwald30-Dec-09 4:42
Daniel Grunwald30-Dec-09 4:42 
GeneralRe: CODE Pin
Luc Pattyn30-Dec-09 4:58
sitebuilderLuc Pattyn30-Dec-09 4:58 
AnswerRe: Threads, speed up calculations Pin
#realJSOP30-Dec-09 2:27
mve#realJSOP30-Dec-09 2:27 
GeneralRe: Threads, speed up calculations Pin
Ben Fair30-Dec-09 3:19
Ben Fair30-Dec-09 3:19 
GeneralRe: Threads, speed up calculations Pin
Renven30-Dec-09 4:05
Renven30-Dec-09 4:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.