wu :: forums
« wu :: forums - again, OS and multithreaded basics »

Welcome, Guest. Please Login or Register.
Jun 2nd, 2024, 11:26am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: william wu, SMQ, Icarus, Eigenray, Grimbal, towr, ThudnBlunder)
   again, OS and multithreaded basics
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: again, OS and multithreaded basics  (Read 673 times)
puzzlecracker
Senior Riddler
****



Men have become the tools of their tools

   


Gender: male
Posts: 319
again, OS and multithreaded basics  
« on: Jan 7th, 2005, 1:01pm »
Quote Quote Modify Modify

what is the differnce between fd (file descripter) and fopen pointer?
 
 
How do you manage multiple sockets in C++ (what are the systems called used, etc)?
IP Logged

While we are postponing, life speeds by
TenaliRaman
Uberpuzzler
*****



I am no special. I am only passionately curious.

   


Gender: male
Posts: 1001
Re: again, OS and multithreaded basics  
« Reply #1 on: Jan 8th, 2005, 2:47am »
Quote Quote Modify Modify

Quote:
what is the differnce between fd (file descripter) and fopen pointer?

The pointer given by fopen is actually a pointer to FILE structure. The file descriptor is simply an integer. The system maintains a table of information of all the files that have been opened. The file desciptor points the entry in this table.
 
Quote:
How do you manage multiple sockets in C++ (what are the systems called used, etc)?

I dont know doing it in C++ is any different than we do it in C. A structure called socketaddr_in is available for this purpose.
 
You can read abt them here,
http://en.wikipedia.org/wiki/Berkeley_sockets
 
The rest i will leave to you to find from man pages.
 
-- AI
IP Logged

Self discovery comes when a man measures himself against an obstacle - Antoine de Saint Exupery
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board