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


Groups > comp.lang.clipper.visual-objects > #5074 > unrolled thread

Multi threading

Started byMartin <spam@spam.spam>
First post2013-04-17 12:42 +0100
Last post2013-04-18 16:52 +0100
Articles 8 — 5 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#5074 — Multi threading

FromMartin <spam@spam.spam>
Date2013-04-17 12:42 +0100
SubjectMulti threading
Message-ID<uUvbt.10679$bp1.3695@fx23.fr7>
How easy is it to do ?

Will need inter thread comms and data access in the others

[toc] | [next] | [standalone]


#5078

From"Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be>
Date2013-04-18 06:59 +0000
Message-ID<kko5lc$mas$1@dont-email.me>
In reply to#5074
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

-- 

[toc] | [prev] | [next] | [standalone]


#5080

FromMartin <spam@spam.spam>
Date2013-04-18 09:37 +0100
Message-ID<9hObt.15455$ZX4.8418@fx08.fr7>
In reply to#5078
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

-- 


[toc] | [prev] | [next] | [standalone]


#5082

FromMathias <mathias.hakansson@consultec.se>
Date2013-04-18 02:56 -0700
Message-ID<7287daad-a4d8-4209-a240-a0d57bbd4cec@googlegroups.com>
In reply to#5080
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
> 
> 
> 
> --

[toc] | [prev] | [next] | [standalone]


#5084

FromMartin <spam@spam.spam>
Date2013-04-18 11:33 +0100
Message-ID<4_Pbt.4371$0W4.2027@fx10.fr7>
In reply to#5082
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
>>
>>
>>
>> --
>

[toc] | [prev] | [next] | [standalone]


#5085

From"Willie Moore" <williem@wmconsulting.com>
Date2013-04-18 07:50 -0500
Message-ID<kkoq5o$sqq$1@speranza.aioe.org>
In reply to#5084
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
>>
>>
>>
>> --
> 

[toc] | [prev] | [next] | [standalone]


#5088

Fromdlzc <dlzc1@cox.net>
Date2013-04-18 08:06 -0700
Message-ID<b3dfc3de-231f-42af-b1b0-bf82305e3620@googlegroups.com>
In reply to#5085
Dear Willie Moore:

On Thursday, April 18, 2013 5:50:02 AM UTC-7, Willie Moore wrote:
...
> 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. 

Maybe this one...
https://groups.google.com/d/msg/comp.lang.clipper.visual-objects/kzp_w_NABIk/LLyozLxVe24J

David A. Smith

[toc] | [prev] | [next] | [standalone]


#5089

FromMartin <spam@spam.spam>
Date2013-04-18 16:52 +0100
Message-ID<SEUbt.11481$FR3.3646@fx30.fr7>
In reply to#5085
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
>>>
>>>
>>>
>>> --
>>
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web