Hello,
the application i'm currently building is doing a couple of things in parallel.Due to the lack of threading capabilities in Basic4PPC i found the timers to be a good replacement for the threads i'm using in the windows version of my application.
During testing of my app it turned out, that the GUI code and the code running in 2 different timers does not real run in parallel.In fact, if the code within a timer needs to wait for something ( e.g. wait until an internet connection has been established) , the entire application is waiting.
This makes me believe, that the whole executable is running in just one thread.When i read the docs, i did not find explicit references confirming this is true.
I searched the forum and found a 3rd party threading library, which indicates indirectly, that Basic4PPC does not have the capability of parallel processing.
My questions regarding this:
- is it true: all codes runs in just one thread( even the timers)..?
- is there any mechanism i could use to circumvent that, like OS Callbacks etc..?
- is the 3rd party Threading lib the only way out of this..?
I'm wondering why this matter is asked so rarely...have only a few people the need for doing things in parallel in their applications..?
cheers
TWELVE
the application i'm currently building is doing a couple of things in parallel.Due to the lack of threading capabilities in Basic4PPC i found the timers to be a good replacement for the threads i'm using in the windows version of my application.
During testing of my app it turned out, that the GUI code and the code running in 2 different timers does not real run in parallel.In fact, if the code within a timer needs to wait for something ( e.g. wait until an internet connection has been established) , the entire application is waiting.
This makes me believe, that the whole executable is running in just one thread.When i read the docs, i did not find explicit references confirming this is true.
I searched the forum and found a 3rd party threading library, which indicates indirectly, that Basic4PPC does not have the capability of parallel processing.
My questions regarding this:
- is it true: all codes runs in just one thread( even the timers)..?
- is there any mechanism i could use to circumvent that, like OS Callbacks etc..?
- is the 3rd party Threading lib the only way out of this..?
I'm wondering why this matter is asked so rarely...have only a few people the need for doing things in parallel in their applications..?
cheers
TWELVE