Getting Started
Introduction
Sample Programs
IDEs
History
Advice
Mini-Tutorial
Tutorials
Code Snippets

Resources
Web Sites
More Tutorials
Forums
Vendors/Tools
Books
Magazines
Newsletters
NewsGroups
User Groups
Talk Shows
Blogs

Controls
Overview
Button
Check3State
Checkbox
ComboBox
Frame
Graphic
Image
ImageX
ImgButton
ImgButtonX
Label
Line
ListBox
ListView
Option
Progress Bar
Scrollbar
StatusBar
TAB
TextBox
Toolbar
TreeView

GBIC >> PowerBASIC >> Tutorials >> Threads

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.

Introduction       Projects       Language           Messages       Functions           Advanced
  • Overview
  • Examples
  • IDE
  • Compilation
  • Distribution
  • Project Files
  • DDT Windows
  • Controls
  • Menus
  • Dialogs  
  • Help Files
  • Resources  
  • Templates  
  • Project Shell  
  • Syntax
  • Operators
  • Data Types
  • Variables
  • Scope
  • Declarations  
  • Procedures
  • Flow Control
  • Windows
  • Messages
  • Callbacks
  • Mouse
  • Keyboard
  • Dialogs
  • Controls
  • Subclassing
  • Arithmetic
  • Trig  
  • Strings
  • Arrays
  • Date/Time
  • Printing
  • Files
  • Folders
  • Keyboard
  • Mouse
  • Sound
  • System
  • Error Traps
  • Debugging
  • Objects
  • Graphics
  • Databases
  • API
  • DLLs
  • ASM
  • Threads
  • Threads
    Here's a quick reference of the available array functions, categorized by function.

      • Create/Destroy
       THREAD Create, THREAD Close
      • Information
       threaded, threadcount, threadid 
      • Manage
       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.