LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Using PIPES for Interprocess Communications

Posted 06-01-2013 at 05:46 PM by rtmistler

When you look at Linux documentation, there are a variety of ways to communicate across processes. I've tried a few, http://tldp.org/LDP/tlk/ipc/ipc.html, including signals, semaphores, IPC, shared memory, and PIPES.

My Summary of Each IPC Type

Signals
Signals are singular indicators which carry very one-dimensional information. They are fast, and they are supported by system calls where you can send one easily or wait, blocking or non-blocking to see if you've...
Moderator
Views 1077 Comments 0 rtmistler is offline
Old

Creating a daemon to launch and monitor your processes

Posted 05-30-2013 at 01:11 PM by rtmistler
Updated 12-09-2014 at 02:29 PM by rtmistler

Most of my Linux application architectures are really a collection of processes which are started at boot and need be maintained in case something unexpected occurs. Long ago I started with daemons, but also learned and developed a few additional concepts.

The links have changed over the years, but if you search for "linux daemon" and go down some of the search results, you'll find similar entries as:

http://www.netzmafia.de/skripten/uni...mon-howto.html...
Moderator
Views 2963 Comments 0 rtmistler is offline
Old

Select(2) and why I use it

Posted 05-24-2013 at 01:55 PM by rtmistler
Updated 06-03-2013 at 07:57 AM by rtmistler

What does select() for me? I mainly use it as a non-blocking call which rapidly checks file descriptors for new information. Based on this, I can continue to perform other computing activities which are in my processes background, but also be ready to grab data from those one or more descriptors as soon as something is available.

The following code has been simplified to cover the main points surround how I use select().

Code:
__attribute__((noreturn))void run_sensor_process(int
...
Moderator
Views 1539 Comments 0 rtmistler is offline

  



All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration