PowerBASIC Information Center Tutorials
These tutorials were written to help you get a quick, but thorough, understanding of PowerBASIC -
the scope of the language as well as it's specific capabilities.
Threads
Here's a quick reference of the available array functions, categorized
by function.
| THREAD Create, THREAD Close
|
| threaded, threadcount, threadid
|
|
Process SET Priority, Process GET Priority,
THREAD SET Priority, THREAD GET Priority,
THREAD Resume, THREAD Status, THREAD Suspend
|
Thread Function Listing
Here's a simple listing of the thread functions, with a one-liner
description.
- Process Get Priority - gets priority value for current process
- Process Set Priority - sets priority value for current process
- THREAD Create - starts a new thread, returns handle
- THREAD Close - releases the handle to a thread
- THREAD Function - declares thread function
- THREAD Get Priority - return thread priority value
- THREAD Resume - continue a suspended thread
- THREAD Set Priority - establish thread priority value
- THREAD Status - determines active state of thread
- THREAD Suspend - temporarily stop thread
- threaded - declare variables local to thread
- threadcount - number of active threads in application
- threadid - return thread ID value (long-integer)
Note: THREAD CLOSE does not stop a running thread. It simply releases
the thread's handle and the thread continues to take up memory and CPU resources.
Thread Function Reference
Here's a quick reference of the available array functions, in alphabetical
order.
- Process Get Priority - gets priority value for current process
Process Get Priority
- Process Set Priority - sets priority value for current process
Process Set Priority
- THREAD Create - close a thread, release the handle
Thread Create
- THREAD Close - close a thread, release the handle
Thread Close
- THREAD Function - declares thread function
Thread Function
- THREAD Get Priority - return thread priority value
Thread Get Priority
- THREAD Resume - continue a suspended thread
Thread Resume
- THREAD Set Priority - establish thread priority value
Thread Set Priority
- THREAD Status - determines active state of thread
Thread Status
- THREAD Suspend - temporarily stop thread
Thread Suspend
- threaded - declare variables local to thread
threaded
- threadcount - number of active threads in application
threadcount
- threadid - return thread ID value (long-integer)
threadID
If you have any suggestions or corrections, please let me know.