🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.wizards
Article #6963

Re: How to avoid calling time(2)

#6963
From: Arlie Davis
Date: Thu, 28 Jan 1993 15:41
13 lines
1164 bytes
gcody@gandalf.ca (Gord Cody) writes:

> How about this. Each process attaches to a small shared memory
> segment when they start. 1 process has an alarm go off every
> second, it does the time() call and updates the shared memory.
> Whenever any other process requires the time, it simply uses the
> shared memory value. No setuid required, or running as root, or
> touching of /unix or /de/kmem required. Have a nice day :)

You're kidding, right?

-- 
lrwx------   1 aldavi01 emacsstu       9 Jun  6 12:43 .signature -> /dev/null
Technical Details
Message-ID: <aldavi01.728235699@starbase.spd.louisville.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!netnews.louisville.edu!starbase.spd.louisville.edu!aldavi01
References: <1993Jan27.195309.15120@cpio1.fr.mugnet.org> <1993Jan28.132632.1374@gandalf.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.wizards
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!netnews.louisville.edu!starbase.spd.louisville.edu!aldavi01
From: aldavi01@starbase.spd.louisville.edu (Arlie Davis)
Subject: Re: How to avoid calling time(2)
Sender: news@netnews.louisville.edu (Netnews)
Message-ID: <aldavi01.728235699@starbase.spd.louisville.edu>
Date: Thu, 28 Jan 1993 15:41:39 GMT
Reply-To: Arlie Davis <aldavi01@starbase.spd.louisville.edu>
References: <1993Jan27.195309.15120@cpio1.fr.mugnet.org> <1993Jan28.132632.1374@gandalf.ca>
Nntp-Posting-Host: starbase.spd.louisville.edu
Organization: University of Louisville
Lines: 13