Solved

multi-threading

Posted on 2001-08-24
3
2,515 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
3 Comments
 
LVL 4

Accepted Solution

by:
Bhatti earned 50 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now