Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Colombo
Red Hat Certified System Administrator (RHCSA) - RHEL 10
Sanjeewani95
Updated:
Yesterday at 7:43 PM
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Thursday at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Wednesday at 9:58 PM
Ad icon
Video Content Creator
pramukag
Updated:
Sunday at 6:10 AM
Ad icon
QA Engineer Intern
pramukag
Updated:
Sunday at 6:07 AM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Why it take longer time to copy file than delete it?
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="gazaly" data-source="post: 849704" data-attributes="member: 10197"><p><u><strong>Why it take longer time to copy file than delete it?</strong></u></p><p><u><strong></strong></u></p><p><u><strong></strong></u></p><p><u><strong></strong></u> An Operating System (OS) is a program that acts as an intermediary between a user of a computer and the computer hardware. </p><p> </p><p>Depending on the storage device being used, computers can store information in several physical forms. Each device has its own characteristics and physical organization, and hence different views of information are created. To unify all these views of information, a uniform logical view called a file is created. </p><p> </p><p>A file is a contiguous set of data. It is the job of the OS to map this sequence of data into physical devices. The part of the OS responsible for this is the file system. </p><p> </p><p>So the main task of the file system is to free the users of the details of storing of information in the physical devices. That is, when the storage device is changed, from disk to CD for example, the user still sees the same information. </p><p> </p><p>In the most basic form, a file system consists of two distinct parts: a collection of files and a directory structure. The directory structure organizes and provides information about all the files in the system. </p><p> </p><p> </p><p> </p><p>Every file has certain attributes like its name, location (its address in the file system), size, access control information (whether the file can be read or written to or only executed etc), type (whether it is just a collection of data or has other special instructions) , time, date and user identification. </p><p> </p><p>If file A is to be copied to file B, then first a new file called B is created, next the contents of A are read and finally, this is written to B. </p><p> </p><p>For this to happen, three steps are necessary. First, space must be found for B in the file system. Second, an entry for B must be made in the directory. The directory records the name of B and the location of B in the file system. Third, a request is sent to the OS to read the contents of A. </p><p> </p><p>The OS finds the location information of A from the directory and reads the contents. Now to write to B, the OS again searches the directory for the address of B. Finally the content of A is written onto the space provided for B. </p><p> </p><p>On the other hand if a file deletion is to take place, the process is much simpler. If file A is to be deleted, the OS just searches the directory for the named file. </p><p> </p><p>Having found the entry, the space occupied by A is released so that it can be used by other files and the directory entry is erased. </p><p> </p><p>As can be seen, the operations involved while copying a file are much more than those involved while deleting a file...</p></blockquote><p></p>
[QUOTE="gazaly, post: 849704, member: 10197"] [U][B]Why it take longer time to copy file than delete it? [/B][/U] An Operating System (OS) is a program that acts as an intermediary between a user of a computer and the computer hardware. Depending on the storage device being used, computers can store information in several physical forms. Each device has its own characteristics and physical organization, and hence different views of information are created. To unify all these views of information, a uniform logical view called a file is created. A file is a contiguous set of data. It is the job of the OS to map this sequence of data into physical devices. The part of the OS responsible for this is the file system. So the main task of the file system is to free the users of the details of storing of information in the physical devices. That is, when the storage device is changed, from disk to CD for example, the user still sees the same information. In the most basic form, a file system consists of two distinct parts: a collection of files and a directory structure. The directory structure organizes and provides information about all the files in the system. Every file has certain attributes like its name, location (its address in the file system), size, access control information (whether the file can be read or written to or only executed etc), type (whether it is just a collection of data or has other special instructions) , time, date and user identification. If file A is to be copied to file B, then first a new file called B is created, next the contents of A are read and finally, this is written to B. For this to happen, three steps are necessary. First, space must be found for B in the file system. Second, an entry for B must be made in the directory. The directory records the name of B and the location of B in the file system. Third, a request is sent to the OS to read the contents of A. The OS finds the location information of A from the directory and reads the contents. Now to write to B, the OS again searches the directory for the address of B. Finally the content of A is written onto the space provided for B. On the other hand if a file deletion is to take place, the process is much simpler. If file A is to be deleted, the OS just searches the directory for the named file. Having found the entry, the space occupied by A is released so that it can be used by other files and the directory entry is erased. As can be seen, the operations involved while copying a file are much more than those involved while deleting a file... [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom