Article View: borland.public.cppbuilder.nativeapi
Article #9041Re: Which technique to apply not to slow down the service
From: Remy Lebeau (TeamB)
Date: Fri, 06 Aug 2004 17:43
Date: Fri, 06 Aug 2004 17:43
26 lines
1793 bytes
1793 bytes
"Vladimir Stefanovic" <spam@not.needed> wrote in message news:411384e2@newsgroups.borland.com... > I want to avoid this /simplified/ ... Sorry, but that is exactly what you need to do. However, your call to ProcessRequests() suggests that you are putting the code into the service's OnExecute event, is that correct? If so, then I stronly recommend that you not use the OnExecute event, but instead put the code into its own thread instead. > ... because (I think) passing data through LAN in real life > can be a lengthy process in a manner of PC speed, so I > want to separate finding and passing. Then you need multiple threads - one that monitors the files and processes changes, and then forwards the changes to another thread for the sending while the first thread goes back to monitoring the files. > I would like to do this /simplified/ ... You need threads for that. Gambit
Technical Details
Message-ID:
<4113c322$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<411384e2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b303ffe6ae15dbed X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <411384e2@newsgroups.borland.com> Subject: Re: Which technique to apply not to slow down the service Date: Fri, 6 Aug 2004 10:43:56 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4113c322$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1091814178 68.69.17.41 (6 Aug 2004 10:42:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail