4.2 Printer Spooler Question

Jack Saltiel saltiel at cdstar.UUCP
Wed Aug 28 14:45:48 AEST 1985


In article <289 at drutx.UUCP>, james at drutx.UUCP (DavisJB) writes:
> In-Reply-To: your article <136 at cdstar.UUCP>
> 
> In reference to "cdstar!saltiel"'s question on mutilple spoolers
> targeting one printer.  A rather simple solution to your problem
> is a follows:
> 
> To solve this, I worked out a method of using a common "printer busy"
> lock file.  

In fact, this is what we implemented yesterday. Fortunatly the HP
laserjet printer does not have any time dependent problems.
Everything that comes the serial line is handled serially.

A filter that wants the printer checks for the existence of a lock
every N seconds, until it does not appear. When a filter is
finished, it unlinks the lock file and waits 2N seconds before
it goes away. In this manner, stuff is taken from alternate
queues.

This solution works reliably (based on two days experience.)

If anybody want the source to these filters, fire me a letter
and I'll send them off to you.

			Tanks again!

-- 
					Jack Saltiel
					Cambridge Digital Systems
					{wjh12,talcott}!cdstar!saltiel

	"Nailed retreads to my feet and prayed for better weather."



More information about the Comp.unix mailing list