Solved

Open File vs Open file descriptiors

Posted on 2011-03-22
4
269 Views
Last Modified: 2012-05-11
Hi,

What is the difference between open file descriptors and open files? I'm  using  linux centOS.

0
Comment
Question by:mokkan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 167 total points
ID: 35190727
An "open file" is represented by an entry in a kernel table (one per process), and a file descriptor is an index to this table.

The application doesn't access a file directly but passes this descriptor to the kernel which uses it as a key to access the file "on behalf" of the application.

So an "open file descriptor" is an index to a table of "open files".

wmp
0
 
LVL 12

Assisted Solution

by:upanwar
upanwar earned 167 total points
ID: 35191381
This could also explain you.

http://www.netadmintools.com/art295.html
0
 
LVL 4

Assisted Solution

by:roemelboemel
roemelboemel earned 166 total points
ID: 35193025
short - and not 100% accurate - answer:

"everything is a file"
an open file descriptor is a "thing" which represents an open file
long answer:
http://en.wikipedia.org/wiki/File_descriptor
0
 

Author Closing Comment

by:mokkan
ID: 35385702
should be fixed.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question