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


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

Re: Multi threading

From Martin <spam@spam.spam>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Multi threading
References (1 earlier) <kko5lc$mas$1@dont-email.me> <9hObt.15455$ZX4.8418@fx08.fr7> <7287daad-a4d8-4209-a240-a0d57bbd4cec@googlegroups.com> <4_Pbt.4371$0W4.2027@fx10.fr7> <kkoq5o$sqq$1@speranza.aioe.org>
Message-ID <SEUbt.11481$FR3.3646@fx30.fr7> (permalink)
Date 2013-04-18 16:52 +0100

Show all headers | View raw


Thanks

BTW it is an Xbase++ program I need to replace, I have a lot of usable 
VO code I want to use, so scanner end will still be XB++ and the 
processor will be VO.

On 18/04/2013 13:50, Willie Moore wrote:
> Martin,
>
> VO can be used for Multi threaded applications, you just have to be
> careful. But that is the same for any programming language. Ginny did a
> really nice session on multi threading a few years ago. She posted a
> link to the article not too long ago but I cant remember the link off
> the top of my head. Basically remember with the second threads, they do
> not write GUI, pass passages back to the main thread to handle any GUI.
> Also, you will have to use local copies of your database. You cannot
> just open a DBF in the main thread and access if from your secondary
> threads. That can cause corruption. Just remember to clean up in the
> threads. If you open DBServers, close them before existing. If you
> allocate any memory, dealloc before leaving or you will create leaks.
>
> Regards,
> Willie
> Vulcan VIP
>
> "Martin"  wrote in message news:4_Pbt.4371$0W4.2027@fx10.fr7...
>
> Because I like to have a main thread at work and another thread kicked
> off to do checking, the main processing thread will make barcodes as
> done and a secondary thread will be able to check loading and see if
> everything is complete, this second thread could take 10 seconds to run.
>
> It works perfectly in another language but due to a lot of other code I
> need to move the idea to VO.
>
> The new system is to be more distributed and a LOT more functionality.
>
>
>
>
> On 18/04/2013 10:56, Mathias wrote:
>> Why do you want it to be multi threaded? Isn't posiible to rewrite it
>> to a single threaded routine?
>>
>> /Mathias
>>
>>
>> Den torsdagen den 18:e april 2013 kl. 10:37:39 UTC+2 skrev Martin:
>>> Oh dear that is a killer, I may have to use a different dev environment
>>>
>>> to do this. The files in more than one thread is essentail as I was
>>>
>>> wanting to rewrite a barcode processing system into VO.
>>>
>>>
>>>
>>> The engine which needs a COMPLETE rewrite was originally in Clipper,
>>>
>>> been in Xbase++ for about 10 years, and is getting a mess to maintain. I
>>>
>>> wanted to move to VO due to all of the code I have written so I could
>>>
>>> use it.
>>>
>>>
>>>
>>> -------- Original Message --------
>>>
>>> Subject: Re: Multi threading
>>>
>>> Date: Thu, 18 Apr 2013 06:59:56 +0000 (UTC)
>>>
>>> From: Dirk (Belgium) <dirk.dot.herijgers@pbprojects.dot.be>
>>>
>>> Organisation: A noiseless patient Spider
>>>
>>> Newsgroups: comp.lang.clipper.visual-objects
>>>
>>> References: <uUvbt.10679$bp1.3695@fx23.fr7>
>>>
>>>
>>>
>>> Martin wrote:
>>>
>>>
>>>
>>>   > How easy is it to do ?
>>>
>>>   >
>>>
>>>   > Will need inter thread comms and data access in the others
>>>
>>>
>>>
>>> If you want to use a DBF in the second thread, you will have problems
>>>
>>> !!!
>>>
>>> Be aware of that.
>>>
>>>
>>>
>>> Dirk
>>>
>>>
>>>
>>> --
>>
>

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


Thread

Multi threading Martin <spam@spam.spam> - 2013-04-17 12:42 +0100
  Re: Multi threading "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2013-04-18 06:59 +0000
    Re: Multi threading Martin <spam@spam.spam> - 2013-04-18 09:37 +0100
      Re: Multi threading Mathias <mathias.hakansson@consultec.se> - 2013-04-18 02:56 -0700
        Re: Multi threading Martin <spam@spam.spam> - 2013-04-18 11:33 +0100
          Re: Multi threading "Willie Moore" <williem@wmconsulting.com> - 2013-04-18 07:50 -0500
            Re: Multi threading dlzc <dlzc1@cox.net> - 2013-04-18 08:06 -0700
            Re: Multi threading Martin <spam@spam.spam> - 2013-04-18 16:52 +0100

csiph-web