[Cialug] Slightly OT, .. C coding

Morris Dovey mrdovey at iedu.com
Mon Aug 22 22:52:43 CDT 2016


man 3 popen

There’s a fairly good explanation of popen() and writing to pipes in APUE.

On 8/22/16 3:12 PM, L. V. Lammert wrote:
> On Mon, 22 Aug 2016, Dave Weis wrote:
>
>> Platform?
>>
> Probably Debian, ..
>
>> I would generally enable buffering on the port and use either a timer or
>> interrupt to put the data into a fifo. Possibly blocking I/O also. Need
>> more and better description of what you're trying to accomplish.
>>
> The timer approach is what takes too long; need a way to stuff the data
> into a pipe or message queue and have the recipient get it without delay.
>
> Have not seen any structure to implement a multi-threaded fifo -
> suggestions?

-- 
Morris Dovey
http://www.iedu.com


More information about the Cialug mailing list