| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | OS/2 EXEs with shared code? |
> A DLL used by multiple OS/2 processes, will only be loaded once. Right? > An EXE running in multiple OS/2 processes, like a mailer/BBS in a multi-line > situation, will be loaded again for each process. Right? Having multiple processes running the same copy of an EXE is called "multi-threading". It's very popular. What you do, is you fork off another thread with the DosCreateThread call or some such, and then the two .EXE's share the same data segment (all your global variables, in C,) and the same code segment (the program), but they have their stack segments (local variables). It shouldn't be too hard for an OS/2 bbs to fork a seperate thread for each line in a multi-line system, meaning you don't have to have seperate copies of the .exe loaded for each. I may try that when I port XBLAT to OS/2. Right now I'm writing it under DOS, and waiting for the new OS/2 to get out of beta so I can buy a copy that'll work on my 4 meg ram machine... (Call me sheepish, but I'm not mucking about with a beta as my OS. I don't care HOW stable it is, I only have the one computer. (I've seen too many horror stories. Admittedly, they were linux horror stories, but still...) I'm following the discussion intently, though... Rob landley --- Xblat V1.00* Origin: The Conversation Pit. Marlton, NJ. 609-985-7553 V32bis (1:266/30) SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430 SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 266/30 40 21 3615/50 229/2 12/2442 711/409 54/54 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™.