From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4326 invoked from network); 27 Oct 1998 20:13:00 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 27 Oct 1998 20:13:00 -0000 Received: from planetfall.com (qmailr@mystic.planetfall.com [206.180.157.46]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id PAA19688 for ; Tue, 27 Oct 1998 15:02:16 -0500 Received: (qmail 18926 invoked by uid 1000); 27 Oct 1998 20:02:11 -0000 Date: Tue, 27 Oct 1998 14:02:11 -0600 From: Jeff Noxon To: axp-list@redhat.com Subject: Re: Linux Programming... Message-ID: <19981027140211.A18867@planetfall.com> References: <199810271756.KAA13885@ellpspace.math.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.12i In-Reply-To: ; from Keith Baker on Tue, Oct 27, 1998 at 02:37:50PM -0500 X-URL: http://www.planetfall.com/~jeff/ Egads! A delay loop on a multitasking system! What you want to do is not difficult. This will provide some instant enilghtenment and gratificaion: Unix Programming FAQ http://www.cis.ohio-state.edu/text/faq/usenet/unix-faq/programmer/faq/faq.html For the parallel port, there are Linux HOWTO's on the subject. Search for the Linux Documentation Project. For Unix programming in general, run (don't walk) out and buy W. Richard Steven's books on the topic. IIRC, Advanced Programming In The Unix Environment is the title of the one you want to buy right away. He also has excellent books on network programming. One last word of advice: Writing setuid programs is not for the novice if security is a concern at all. Regards, Jeff On Tue, Oct 27, 1998 at 02:37:50PM -0500, Keith Baker wrote: > I have a basic knowledge of C and C++ programming. What I would like to > get is some links/information on interrupts,threads, and parallel ports. > I can't even find a way to pause my machine for a certail period of time > without doing a loop to slow it down... Where is all of this wonderfull > info... I'd like to have a process which "wakes up" every 1/30 of a > second or so, does its task which is simple i/o and then goes back to > sleep. Oh yeah... one catch... The data to output needs to be shared > with another process. Is two seperate processes really the way to go? If > not, how do I create this non-linear time based jumping? > Should I just go jump off a bridge instead? Do I know to little to > attempt thease things? Oh yeah... How do I use the parallel port in > linux... I know I could use a setuid root program and ioperm but I'd like > to be able to access my device from joe shmoe user... it is a simple box > which takes two different inputs... its a small DMX interface (A lighting > protocol).. you strobe a pin to make it klisten for dimmer info and > strobe another to make it listen for level info... do I need to write a > kernel driver for this? If so, what resources should I look at?