Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket - I/O Activity  RSS feed

 
SAM KUMAR
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to socket programming, I would like to know how much I/O activity or resource consumption (CPU etc) will be there if client application is connected to the server all the time, waiting for response and there is no data transmission ...
Socket client = new Socket(server, port);
// ... waiting for input from server
while (true)
{
line = is.readLine();
...
}

Thanks.
SK
 
SAM KUMAR
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
REPOSTING
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!