Solved

multi-threading

Posted on 2001-08-24
3
2,669 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
Bhatti earned 50 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

733 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