The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 09:52 PM
sed substitute / for \ : error "Function can not be parsed" candyflip2000 Shell Programming and Scripting 3 07-18-2006 12:02 AM
"select" function sequence nir_s Shell Programming and Scripting 1 05-26-2005 10:31 AM
Convert "text" to "packed-decimal"? HuskyJim UNIX for Dummies Questions & Answers 2 06-08-2001 11:59 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2001
Registered User
 

Join Date: Jul 2001
Location: Philippines
Posts: 1
How to convert the "select" function into a "poll" function

i have a program using the select function but i want to convert it to poll... how can i do this? thanks in advance...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-10-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,190
Select is asynchronous, whereas you listen on a socket and when inbound information comes in,the process that is in select mode accepts the data.

Polling would require the process to actively initiate the action to go 'get the data'.

This is a very different method and is not simple matter of converting select (the system call) to another function. You must restructure the algorithm.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0