Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5144

Re: Multi threading a few more questions

From Martin <spam@spam.spam>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Multi threading a few more questions
References <w5Rdt.114261$Pj4.60689@fx14.fr7> <5177ecfb$0$63280$c3e8da3$3a1a2348@news.astraweb.com>
Message-ID <1JSdt.7908$Ra4.7592@fx19.fr7> (permalink)
Date 2013-04-24 16:18 +0100

Show all headers | View raw


BTW hit send before saying thankyou!

On 24/04/2013 15:32, Ginny Caughey wrote:
> You might be able to get away with this if none of your data types are
> garbage collectible (no strings, usuals, etc.) and if you use separate
> workareas in each thread for accessing the DBF files. I don't recommend
> it but I have used this approach successfully many years ago. Today I'd
> just use a separate app that could be kicked off by the main app. Why is
> this not a possibility for you?
>
> Ginny
>
> "Martin"  wrote in message news:w5Rdt.114261$Pj4.60689@fx14.fr7...
>
> I have written the framework for a processing engine, it will use a
> couple of threads to do alternate data access while the main application
> is busy. A test calling a simple set did 2600 (first I saw after 5000
> lines in my log file) calls before I quitted the program.
>
> The idea works perfectly well in the more simpler predecessor written in
> Xbase++.
>
> I will kick off a thread, it will do its check while the rest of the
> system carries on its work, then return when finished.
>
> While running it will need to access about 10 DBFs via ADS, take a
> couple of seconds to access it and decide on an answer, then if OK tell
> the user via a loudspeaker that what they are loading is full.
>
> So there is a risk of the garbage collector kicking in on the thread, is
> this dangerous?
>
> Thanks
>
> Martin

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Multi threading a few more questions Martin <spam@spam.spam> - 2013-04-24 14:28 +0100
  Re: Multi threading a few more questions "Ginny Caughey" <gcaughey@online.hotmail.com> - 2013-04-24 10:32 -0400
    Re: Multi threading a few more questions Martin <spam@spam.spam> - 2013-04-24 16:18 +0100
      Re: Multi threading a few more questions "Ginny Caughey" <gcaughey@online.hotmail.com> - 2013-04-24 18:29 -0400
        Re: Multi threading a few more questions Martin <spam@spam.spam> - 2013-04-26 10:10 +0100
          Re: Multi threading a few more questions dlzc <dlzc1@cox.net> - 2013-04-26 07:34 -0700
            Re: Multi threading a few more questions Martin <spam@spam.spam> - 2013-04-26 16:25 +0100
    Re: Multi threading a few more questions Martin <spam@spam.spam> - 2013-04-24 16:18 +0100

csiph-web