Article View: borland.public.cppbuilder.nativeapi
Article #13642Re: Thread questions
From: Remy Lebeau (TeamB)
Date: Wed, 01 Oct 2003 20:01
Date: Wed, 01 Oct 2003 20:01
37 lines
2265 bytes
2265 bytes
"Jonathan Starr" <starr@belsoft.com> wrote in message news:3f7b2ae6@newsgroups.borland.com... > In this case it does matter, since the threads are intimately connected > by shared data. Even so, the shared data should be protected from multi-thread accesses. In which case, thread task-switching timing are still not an issue. > Can't. Sure you can. All thread priorities can be adjusted, even the main thread. The main thread just does not use a TThread, but it is still a thread nontheless. It just means you have to use the Win32 API directly in order to adjust the main thread's priorities. > I don't have the Windows API docs They come with Builder. If you did not choose to install them when you installed Builder (there was an option for it), you can pull the help files from the installation CD directly. Or just use MSDN online (http://msdn.microsoft.com), it always has latest up-to-date information anyway. > can you tell me what its argument means (I just used 1)? It is the minimum number of milliseconds to sleep. > Impractical. I could spend days trying to strip it down to > a reasonable case. Then make a new project from scratch with mimimal code that reproduces the same issue. Gambit
Technical Details
Message-ID:
<3f7b3228$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f7b0c4e$1@newsgroups.borland.com> <3f7b1a8d$1@newsgroups.borland.com> <3f7b2ae6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,daa80f767a159c0c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-01 13:09:11 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f7b0c4e$1@newsgroups.borland.com> <3f7b1a8d$1@newsgroups.borland.com> <3f7b2ae6@newsgroups.borland.com> Subject: Re: Thread questions Date: Wed, 1 Oct 2003 13:01:06 -0700 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.23.78.204 Message-ID: <3f7b3228$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065038376 67.23.78.204 (1 Oct 2003 12:59:36 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail