TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Phil Crown
date: 1997-02-19 14:41:26
subject: code and data

I have a C++ class containing code and data.



I put several of these classes into a linked list (template).



Each item in the list runs as a thread.



I know the non-static data each has its own copy when the thread is

created with _beginthread().



My question is:  Does the code have its own copy too, or will I need to

serialize calls to the the methods of the classes?





Phil Crown  pcrown{at}airmail.net  http://web2.airmail.net/pcrown/



--- Blue Wave/OS2 v2.30

* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 972-250-4479 * (1:124/1208)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 124/1208 1 396/1 270/101 712/624 711/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™.