Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

multi-threading

Posted on 2001-08-24
3
Medium Priority
?
2,851 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 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

Industry Leaders: 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

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…
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 use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

636 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