LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > rtmistler
User Name
Password

Notices


Linux Application Programming Notes about programming for user space applications.
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 2159 Comments 0 rtmistler is offline

  



All times are GMT -5. The time now is 02:53 PM.

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