Re: Newbie: multithreading (?)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Sat, 22 Oct 2005 02:50:08 -0400, "smith" <jsmith@xxxxxxxx> wrote:

>Hi,
>
>I am not sure if multithreading is the answer but i wonder what should i do
>and how to prevent the "locking" of a form and event response when there is
>some activity that takes too much time.
>
>For example, i open a data file and process the data. While processing, the
>form looks as if it hangs.
>How come "professional" applications dont do that? Just showing the
>hourglass is not enough.
>
>What should i do to allow other user interaction and process the data in the
>"background".

Put a load of DoEvents in the bit that is doing the processing

Be careful to prevent the system 're-entering' the same routine
.



Relevant Pages

  • Newbie: multithreading (?)
    ... I am not sure if multithreading is the answer but i wonder what should i do ... and how to prevent the "locking" of a form and event response when there is ... What should i do to allow other user interaction and process the data in the ...
    (microsoft.public.vb.general.discussion)
  • Re: Understanding threading
    ... then any amount of threads can read> it without any locking being ... This is the basic concpt of multithreading. ... synchronisation to use? ... it is overlapped I/O that is used in place ...
    (borland.public.delphi.language.objectpascal)
  • Re: A7N8X (Deluxe) Madness
    ... and the other is locking up due to automatic suspend/standby issues. ... the machine locks up while booting or shortly ... This is clearly connected to high IDE load, ... > locks up with a 100% chance while doing an fsck. ...
    (Linux-Kernel)
  • Re: CMultiLock example
    ... This is why naive approaches to multithreading and concurrency usually fail. ... In one famous example in the history of multithreading, a colleague of mine, Pete ... could get orders of magnitude performance improvement if you just ignored locking ... as OpenMP uses which also rely on hardware locking. ...
    (microsoft.public.vc.mfc)
  • Re: A hang on code?
    ... but if you want to learn about multithreading in VB.NET, ... >There are some inbuilt method that waits for a procedure execution, ... And the administrator need to be able to open the server ... with no UI locking. ...
    (microsoft.public.dotnet.languages.vb)