| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | OS/2 EXEs with shared code? |
Hi Craig, CS> OS/2 shares executable code pages for both EXE and DLL files. If there is CS> a process running PROGRAM.EXE and you start a second process running CS> PROGRAM.EXE, additional memory for process and thread control blocks, file CS> handles, stacks, and read/write data areas will be allocated. The actual CS> executable code in RAM will be shared between all processes running CS> PROGRAM.EXE. Okay, that's clear speak. Good. So I don't need to set anything special, OS/2 will share the code anyway. AL> under UNIX, you can even give it a 'sticky bit' attribute, forcing AL> it to stay in memory all the time, even if no processes use it at a AL> particular time (imagine a BBS program, called by getty). CS> There is no "sticky bit" in OS/2, but it is easy enough to simulate CS> this simply by blocking a thread on a named semaphore or some other CS> IPC object so that you can cause the process to terminate if you CS> want to release the memory. Care to write me a sample? I may want to have for instance Maximus stay in memory all the time, so the BBS is started faster when a user is put through by the mailer.... Could do that by running the mailer and BBS in separate processes, but a 'sticky bit' equivalent would be just as effective, and easier to set up. Cya! Agl. --- Xenia Edit 1.17+ OS/2* Origin: AINEX-BBS ZYX/FAX+31-33-633916 ISDN+31-33-614657 (FidoNet 2:283/512) 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: 283/512 280/801 24/24 396/1 3615/50 229/2 12/2442 711/409 54/54 @PATH: 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™.