TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mark Birenbaum
from: Murray Lesser
date: 1997-01-05 12:27:04
subject: waiting for keyboard inp

Excerpted from message dated 01-04-97, Mark Birenbaum to Hugo Landsman:

 hl> secondary threads.  Like: you are using Borland C 
 hl> without the threads bugfix?

MB>     Nope, I'm using VisualAge.  Is it possible I've set the stack
  >too small (I'm creating them with DosBeginThread, and I'm providing
  >stacks of 8k)

Hi Mark--

    I do very little C programming, and no C++ programming, but my PL/I
for OS/2 compiler defaults to 1 MB stack for each secondary thread.  I
set the primary thread stack to 2 MB.  With a proper OS/2 compiler
(Borland is not, which is why Hugo asked), stack pages (4KB) are loaded
into memory by the operating system only as required, so specifying an
overly large maximum stack size costs nothing and prevents stack
overflow problems.

          --Murray

___
 * MR/2 2.25 #120 * "Have a frabjous day." he chortled in his joy

--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, telnet://bbs.os2bbs.com (1:109/347)
SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 711/409 410 413 430 808 809
SEEN-BY: 711/934 955 712/311 407 505 506 517 623 624 704 841 713/317 800/1
@PATH: 109/347 18 7 396/1 270/101 712/624 711/808 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™.