[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

multi-threading

Posted on 2001-08-24
3
Medium Priority
?
2,895 Views
Last Modified: 2013-12-26
Can you give an example of how to program multi-threaded apps in PowerBuilder?
0
Comment
Question by:pkaufman
1 Comment
 
LVL 4

Accepted Solution

by:
Bhatti earned 200 total points
ID: 6423717
Shared Objects can be used on any 32-Bit Operating System. shared objects that are created on a client machine connot be used by other applications, only the application that register it.

By createing shared objects, each running in its own thread and calling methods asynchronously, program logic can be run parallel.

inv_notify = create n_cst_notify //Instance variable

n_cst_processing_obj lnv_obj //local variable

SharedObjectregister("n_cst_processing_obj", "SO_parallel_Processing")
IF SharedObjectget("SO_Parallel_Processing", lnv_obj) = success! THEN
    lnv_obj.POST of_Parallel_Process()

    <other processing continues>
END IF

Shared object sessions are best used to cache information.

Please read also in PB Help the functions as

SharedObjectRegister()
SharedObjectGet()
SharedObjectDirectory()
SharedObjectUnregister()

 
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question