- Roland Smith
- PowerBuilder
- Tuesday, 11 April 2023 02:01 PM UTC
I have used SharedObject functions to do multi-threading so I am familiar with the concepts. My app doesn't have a user interface. The main thread runs in the background listening for processing requests via Winsock.
The first question is about re-use. If a background thread notifies the controller in the main thread that it is done, would it be worthwhile to somehow track it as 'idle' and reuse it for the next request? If I just unregister the thread, there is no tracking to complicate things.
The second question has to do with the library manager. When a background thread instantiates an object locally, the PBD it resides in gets loaded into memory. If the main thread or another background thread later instantiates that same object, does it use the in memory copy or does it have to load the file from disk again?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.