读取操作从队列获取消息,但是不从队列中删除消息。
The read operation gets the message from the queue without deleting the message from the queue.
它使用传统的同步 API 对流执行写入和读取操作。
The approach uses the traditional synchronous API for writing and reading from streams.
因此每次读取操作的结果在x轴上间隔20像素进行绘制。
Hence each reading is plotted at 20-pixel intervals along the X-axis.
Or another way of saying it is, we're going to use as the basic steps, those operations that run in constant time, so arithmetic operations.
我们用可以在恒定时间内完成的操作,算法,比较,内存读取。
With this, if I can assume that accessing the i'th element of a list is constant, then you can't see that the rest of that analysis looks just like the log analysis I did before, and each step, no matter which branch I'm taking, I'm cutting the problem down in half.
读取数组中的第i个元素,是个常量时间的操作的话,我也就能像以前那样得到,这个算法是对数级复杂度的分析,并且每一步不管我选择哪个区间,我都可以把问题的规模缩小一半。
And if you've ever heard the word driver software that you install in your computer so that your computer, your operating system, Windows or Mac OS, knows how to talk to that piece of hardware, it's that driver software that then empowers the operating systems to send those commands as well, up, the data is laid out on the disk.
并且如果你听说过安装到,电脑中的驱动软件这个词的话,你的操作系统,比如Windows或者是苹果操作系统,通过这个驱动软件我们的电脑,才能知道如何与这个硬件进行通信,正是因为这个驱动软件,操作系统才能根据数据,左右移动的指令来读取磁盘里的数据。
应用推荐