comp.lang.ada
 help / color / mirror / Atom feed
* OCCAM programming probs
@ 1995-02-07 16:41 huey
  1995-02-08 13:29 ` Colin James III
  1995-02-09 20:04 ` John Townsend
  0 siblings, 2 replies; 3+ messages in thread
From: huey @ 1995-02-07 16:41 UTC (permalink / raw)


Can any one help with a small program that operates numerous functions 
CONCURRENTLY using the SPOOL technique ?

What I am trying to do is have a spooling queue that acts as a buffer between 
several user terminals and/or programs and several print spooling programs all
which run concurrently.i.e the buffer acts as a queue.

The only functions reqd are to Append, Remove or reorder the queue.

Any suggestions on how to approach/complete this ???????

Thanks for your time.

email to Dan@joino.demon.co.uk

-- 
huey



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OCCAM programming probs
  1995-02-07 16:41 OCCAM programming probs huey
@ 1995-02-08 13:29 ` Colin James III
  1995-02-09 20:04 ` John Townsend
  1 sibling, 0 replies; 3+ messages in thread
From: Colin James III @ 1995-02-08 13:29 UTC (permalink / raw)


In article <792175283snz@joino.demon.co.uk>,
huey <huey@joino.demon.co.uk> wrote:
>Can any one help with a small program that operates numerous functions 
>CONCURRENTLY using the SPOOL technique ?
>  ...
>[a] buffer acts as a queue.
>
>The only functions reqd are to Append, Remove or reorder the queue.
>
>email to Dan@joino.demon.co.uk
>-- 
>huey

Please see:
 _Reusable_software_The_Base_object-oriented_component_libraries
by Bertrand Meyer, 1994, Prentice Hall UK.

Of particular interest to your question is pages 340/7 in the 
dispenser class section which includes CLASS _QUEUE_, _ARRAYED_QUEUE_, 
_LINKED_QUEUE_, and _BOUNDED_QUEUE_.  This is a much clearer implementation
of the algorithm (in Eiffel) than anything else I've seen, including Ada 
textbooks and Booch's components in Ada83 (or in C), which usually suffer 
from bounded/unbounded / constrained/unconstrained generic considerations 
which are not issues in Eiffel 3 *ever*.

cjames@stout.entertain.com

(I'm a six time winner:  Continuing Episcopalian, Old Line Republican, 
 Eiffel and BON aficionado, PC clone user, and not a professor.)
 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OCCAM programming probs
  1995-02-07 16:41 OCCAM programming probs huey
  1995-02-08 13:29 ` Colin James III
@ 1995-02-09 20:04 ` John Townsend
  1 sibling, 0 replies; 3+ messages in thread
From: John Townsend @ 1995-02-09 20:04 UTC (permalink / raw)


In article <792175283snz@joino.demon.co.uk>, huey@joino.demon.co.uk (huey) writes:
>Can any one help with a small program that operates numerous functions 
>CONCURRENTLY using the SPOOL technique ?
>
>What I am trying to do is have a spooling queue that acts as a buffer between 
>several user terminals and/or programs and several print spooling programs all
>which run concurrently.i.e the buffer acts as a queue.
>
>The only functions reqd are to Append, Remove or reorder the queue.
>
>Any suggestions on how to approach/complete this ???????
>

I'm not sure that I understand what you mean by the SPOOL technique,
but I have done a fair amount of Occam proggramming, though it was a
year or so since I last did any.

From what I understand that you want (buffering) I can't see any
problem, except perhaps with the re-ordering. Occam lend itself very
well to this problem, and if you are really desperate, I can probably
find a code example somewhere.

Of course, It may be that I don't understand what it is you want :-)



       o/\o/      \o_  _o/     \_o  o_/           Happiness
      <)  (        ) \/ (        )\/(                 is
      / \ /\/     / \   /\     \/\  /\/            Dancing
     /  | |       |  \ / |       |  |
--------------------------------------------------------------------------------
I have two loves in life: Dancing, and my SO.  Fortunately, I dance with my SO!!
--------------------------------------------------------------------------------





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-02-09 20:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-02-07 16:41 OCCAM programming probs huey
1995-02-08 13:29 ` Colin James III
1995-02-09 20:04 ` John Townsend

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox