ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
how to estimate the disk access time? 
e.g. the time between read one byte and another byte in the
disk.
 Question Submitted By :: Praveen
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.
Answer
# 1
Disks are block devices. Mean one block of data can be read 
at one point of time. So there is no point of time between 
read one byte and another byte. If intended to calculate 
time to read one byte, first of all we need to calculate 
the time required to read one block and devide that by 
block size.

Access Time = Command Overhead Time + Seek Time + Settle 
Time + Latency

This equation is not universal standard.
 
Is This Answer Correct ?    1 Yes 1 No
Prasad Jvv
 
  Re: how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.
Answer
# 2
I suppose the answer is to be figured out programmatically
not  by handwaving. Every stupid in Computer Science knows
what you have answered
 
Is This Answer Correct ?    0 Yes 0 No
Arbit
 
 
 
  Re: how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.
Answer
# 3
http://www.linuxinsight.com/how_fast_is_your_disk.html


% sudo hdparm -t /dev/hda

/dev/hda:
Timing buffered disk reads: 140 MB in 3.02 seconds = 46.28
MB/sec

Substitute /dev/hda with the name of your raw disk device,
of course (for example, it might be /dev/sda if you're using
libata, or something else).
 
Is This Answer Correct ?    0 Yes 0 No
Daniele
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Name the language in which the compiler of "c" in written? Bajaj1
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above Siemens4
how to connect oracle in C/C++.  2
What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"?  1
write a programe returns the number of times the character appears in the string  1
WRITE A PROGRAM IN C TO MULTIPLY TWO 2-D ARRAYS  4
Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ? Mascot3
24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?  1
what is meant by the "equivalence of pointers and arrays" in C? Satyam3
What is alloca() and why is its use discouraged?  1
Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort  5
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code? Ramco4
Predict the output or error(s) for the following: 25. main() { printf("%p",main); } ME3
Hi, main() { } Is a user defined function or Built in Functionn Honeywell9
Find string palindrome 10marks Honeywell5
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV Accenture3
HOW TO SWAP TWO NOS IN ONE STEP? Satyam12
write a function to find whether a string is palindrome or not and how many palindrome this string contain?  1
how many header file is in C language ?  14
Please list all the unary and binary operators in C.  1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com