FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Multithreading
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Multithreading
Posted: Fri May 31, 2013 01:00 AM

Dear All,

Just want to share my experienced with xHarbour's MT.. I know everyone was (may not) disappointed.. but I gave up so count me in.. then I settled for background task..

I just want to point-out that there are alternative ways that some of you may already know..

My idea is create one.exe for the task one and two.exe for the task two.. both running on windows background or just minimized on start.. these programs use some-kinda-quorum file (.dbf/.ini) which checks the task completed/queued by the other.. they do that while main.exe operates normally by end-user.

My created apps.. generates reports by one.exe.. process data by two.exe.. while main.exe accepts user-inputs all at the same-time.. some-kinda-multithreading or whatever you called it.. the output was so pleasingly accepted..

Until MT on (x)Harbour matures.. Then I am willing to wait..

Just my 2 cents.

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Multithreading
Posted: Fri May 31, 2013 08:03 AM
fraxzi wrote:Dear All,

Just want to share my experienced with xHarbour's MT.. I know everyone was (may not) disappointed.. but I gave up so count me in.. then I settled for background task..


Which problems did you encounter using MT, exactly?

EMG
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Multithreading
Posted: Sat Jun 01, 2013 12:20 AM

Dear EMG,

One of the problem I encountered was (xHarbour) it frequently hang on Win7 x64.. with WinXP x86 end-user experienced the same.. which I cant trace the caused.
That was 5 years ago though.. I settled to background task and wasn't able to look back with MT since then..

But I always fallow threads here about MT and how it grows-up.. :lol:

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Multithreading
Posted: Sat Jun 01, 2013 07:51 AM
Frances,

fraxzi wrote:That was 5 years ago though..


I wonder if the situation has changed since then...

EMG
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Multithreading
Posted: Sat Jun 01, 2013 08:14 AM

Hello,

The Harbour and xHarbour multithreading are similar only in name. They are different implementations.
To me it is not valid as such any experience with xHarbour multithreading because it is well known for a long time the xHarbour multithreaded not work as well than Harbour.

regards

Continue the discussion