| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Threads |
-=> Quoting Alan Clifford to All <=-
AC> Hello All
AC> This is my first, tentative effort at an OS/2 program. I thought I
AC> would look at threads. The program is at the end of the message.
AC> I was expecting thread 2 to print a few lines then swap to thread 3,
AC> print a few lines and so on. But it can get stuck in one of the
AC> threads for about 19 seconds. I also opened another window and ran
The most obvious mistake I see is that you fail to allow either thread to
sleep. Withot that sleep any thread is unable to release control to other
threads. Insert a reasonable amount of sleep time into each thread to allow
each to release control to the main process and other threads.
Dave...
... THD ProScan support on the web, http://www.naples.net/~nfn03274
~~~ TGWave v1.12+
--- GEcho 1.11+
* Origin: fks Online! * Ontario, Canada * (905)820-7273 * (1:259/423)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 259/423 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.