TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Jonathan de Boyne Pollard
date: 1996-07-28 20:22:20
subject: profile

PF>
  > Starting with one of the OS/2 2.1 fixpaks,t
  > ini files started working in a substantially different way
  > (that I disagree with;  but I digress). [...]
  >
  > The system never actually writes directly to the *.ini's
  > anymore,it keeps stuff in memory,  then,  when it decides
  > to take a dump,it writes them out to files like "os2.!!!",
  > then erases os2.ini and renames os2.!!! to os2.ini.
PF>

  Strictly speaking, this isn't quite what is happening.

  If you write a program that accesses the user or system INI files, then
  that program will access those files directly, and all changes will be
  reflected immediately.

  What has changed is *Workplace Shell*.  More specifically, what has
  changed is the way that objects of classes that descend from WPAbstract
  store their persistent data.

  In older versions of Workplace Shell, whenever an abstract object
  changed its persistent data, that change would be stored immediately to
  the INI file.  In OS/2 2.11 this was changed so that changes were
  buffered in memory.  Every 30 seconds or so, Workplace Shell then
  flushes these changes from the buffer out to the INI files.

  In parallel with this buffering, another change was made so that WPS
  wrote all batched changes to a a copy of the system and user INI files,
  and then moved those copies over the originals.  This reduces the window
  where OS2.INI and OS2SYS.INI are in an intermediate state, or are being
  modified, and thus the risk of INI corruption when a dirty shutdown
  happens.  Effectively, all of the WPS modifications to abstract objects
  made in the past 30 seconds are saved in one (semi-)atomic operation.

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 440/4 141/209 270/101 712/515 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™.