Larry McVoy writes: > On Fri, Dec 28, 2001 at 08:42:44PM +1100, Keith Owens wrote: > > "All" I need to do is have one server process that reads the big list > > once and the other client processes talk to the server. Much less data > > involved means faster conversion from absolute to standardized names. > > Actually, if you use the mdbm code, you can have a server process which > reads the data, stashes it in the db, touchs ./i_am_done, and exits. > "client" processes do a > > while (!exists("i_am_done")) usleep(100000); > m = mdbm_open("db", O_RDONLY, 0, 0); > val = mdbm_fetch_str(m, "key"); > etc. > > No sockets, no back and forth, runs at mmap speed.
That sounds like a better approach. I got a bit nervous when Keith talked about a "server process". Made me think I'm going to have to install some daemon, or I'm going to have a pile of background processes being left behind (no matter how careful you are, you always end up with some "leakage" of stale processes). Regards, Richard.... Permanent: [EMAIL PROTECTED] Current: [EMAIL PROTECTED] _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel