how to estimate the disk access time?
e.g. the time between read one byte and another byte in the
disk.
Answers were Sorted based on User's Feedback
Answer / prasad jvv
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 ? | 6 Yes | 2 No |
Answer / daniele
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 ? | 1 Yes | 0 No |
Answer / arbit
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 ? | 1 Yes | 3 No |
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Explain null pointer.
25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?
11 Answers CTS, TCS,
What are 3 types of structures?
How can I do serial ("comm") port I/O?
What's a good way to check for "close enough" floating-point equality?
Hi can anyone tell what is a start up code?
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
what is c
void main() { int i=5; printf("%d",i+++++i); }
1. Write a c pgm to print 1 to 100 without using loops. 2. Write a c pgm for leap year 3. Write a c pgm fibbonacci series,factorial 4. Write a c pgm count no of lines , blanks, tabs in a para(File concept) 5. Write a c pgm to print the letter as per given condition i.e.. if u give 4 out put should b 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 6.how do get the o/p in number from 1 to 100 in the screen without using control statement? 7. who do u print the word "hello world" without using "printf" statement? 8. write sql program to get the detail of student in a class? Definitions: structure union arrays linkedlist macros directives difference b/w pre processorsDiffrence: 1.Constructors and destructors 2.Structure and Union 3.Array and Lists 4.pre processor... 5. Privillages in C++ 6.structure and union 7.break and continue 8.while and dowhile Pgm..
What are the benefits of c language?