实验结果表明:使用FLC算法提高了光波长的资源利用率,同时降低了数据阻塞率,提升了光波长路由器的性能。
The result of simulating experiment indicated that the FLC algorithm enhanced the rate of resource utilization and reduced the rate of data block in the optical wavelength router.
假如不熟悉阻塞队列概念,它实质上就是一种带有一点扭曲的FIFO数据结构。
For those unfamiliar with the concept of a blocking queue, it is essentially a FIFO data structure, with a twist.
是否应该阻塞,直到足够的数据到达。
这里,我们让一个线程单独负责处理非阻塞通道(生产者),让另一个线程单独负责把数据作为流消费(消费者)。
Here, we have a thread solely responsible for processing a nonblocking channel (the producer) and another thread solely responsible for consuming the data as a stream (the consumer).
异步I/O让应用程序能够在不阻塞的情况下读写数据。
The asynchronous I/O allows applications to read and write data without blocking.
在非阻塞连接的情况下,返回0表示没有可以获得的数据,返回-1表示连接出错。
On a non-blocking connection, a return of 0 means no data was available, and -1 indicates an error.
但是,这种做法不总是我们想要的,读线程很可能希望等待(即阻塞自身),直到有数据可用时为止。
This may not always be the desired approach, however, and it is likely that the reader thread might want to wait or block itself until the time data becomes available.
您可能会想考虑使用一个非阻塞的日志系统,以防止您的终端用户等待您记录数据。
You may want to consider using a logging system that is non-blocking, so that your end user never waits for you to log data.
阻塞的系统调用,就拿读取来说,直到数据准备好的时候才会返回。
A blocking syscall, like a read will only return once data is available.
这种安全、高容量、抗阻塞的无线(非卫星)系统通过数字数据以及话音通信使战场用户互连。
The secure, high-capacity, jam-resistant wireless (non-satellite) system connects users with both digital data and voice communications.
对于阻塞队列,只有读线程需要在队列中没有数据时等待。
In a blocking queue, only the reader thread needs to wait when there is no data in the queue.
如果在读的时候,数据尚未完全到达套接字,则线程将在读操作上阻塞,一直到数据可用。
If during a read, data has not completely arrived at the socket, the thread will block on the read operation until all the data is available.
注意,触发选项控制其他跟踪属性已经选择的跟踪数据是正常生成,还是被阻塞。
Note that the trigger option controls whether what has been selected by the other trace properties is produced as normal or whether it is blocked.
也可以在数据库系统没有离线的情况下执行离线备份,方法是当复制数据库目录的时候冻结系统(阻塞所有写操作)。
Offline backup can also be performed without bringing the database system offline by freezing the system (blocking all write operations) while copying the database directory.
这个堆栈没有锁;这种无锁的并发数据结构也称为非阻塞数据结构。
No locks will be included; this kind of lock-free, concurrent data structure is also referred to as a non-blocking data structure.
不幸的是,read方法也要一直阻塞到数据可用为止,write 方法也一样,。
Unfortunately, the read method also blocks until data is available, as does the write method.
比如,一个service可以在用户执行另一个应用时在后台播放音乐,或者不阻塞用户与activity交互,通过网络抓取数据。
For example, a service might play music in the background while the user is in a different application, or it might fetch data over the network without blocking user interaction with an activity.
数据是以非阻塞方式从通道中读取的,并被写到Client对象中。
Data is read from the channel in a nonblocking fashion and written to the Client object.
所有数据请求和解析都由浏览器处理,因此可以减少服务器的负载,避免阻塞页面上的其它portlet的呈现。
All the data requests and parsing are handled by the browser, thereby reducing the server load and avoiding blocking other portlets on the page from rendering.
在以前的例子中,每当0字节的接收完成,返回存储了的数据,马上执行非阻塞接收。
In the previous example, a non-blocking receive was performed once the zero-byte receive completes retrieving the buffered data.
清单5显示了用于创建与xev监视程序之间的非阻塞链接的createpipe子例程,以及用于将数据头信息输出到STDERR中的printheader子例程。
Listing 5 shows the createPipe subroutine used to create a nonblocking link to the xev monitoring program, as well as the printHeader subroutine, which prints the data header information to STDERR.
(例如在客户端控制的事务中,)一个客户端的失败会长久地阻塞数据库资源、超出我们的忍受程度。
Client managed transactions because a client failure can tie up database resources for longer than we can tolerate.
这些类是具有无等待端的队列,在这里,一个NHRT可以请求读或写某些数据(具体取决于类),而不存在阻塞的风险。
These are queues that have a wait free side where an NHRT can request to read or write some data (depending on the class) without the danger of blocking.
如果您需要等待一个阻塞操作—比如,对于来自远程数据库查询的结果—您不会确切地知道在可以使用结果之前究竟要等待多长时间。
If you need to wait on a blocking action — say, the results from a remote database query — it is not clear exactly how long you will need to wait for results to be available.
利用该键,您可丢弃组成员、阻塞或者取消阻塞来自特定地址的数据报、以及返回有关组和通道的消息。
Using the key you can drop the membership, block and unblock datagrams from certain addresses, and return information about the group and channel.
在非阻塞模式中,线程将读取已经可用的数据(不论多少),然后返回执行其它任务。
In nonblocking mode, the thread will read whatever amount of data is available and return to perform other tasks.
这是因为大多数套接字操作都是异步地进行的,其中套接字进行轮询以检查数据是否出现,而不是使得应用程序处于阻塞(等待)状态以等待响应。
This is because most socket operations are made asynchronously in that the socket is polled to see if data is present rather than having the application block (wait) for the response.
所以,要构建一个非阻塞的链表、树或哈希表,需要找到一种方式,可以用CAS更新多个指针,同时不会让数据结构处于不一致的状态。
So to construct a nonblocking linked list, tree, or hash table, we need to find a way to update multiple Pointers with CAS without leaving the data structure in an inconsistent state.
特别是,如果把所有的事件都放在主线程中来处理,需要长时间来处理的事件比如网络访问或者数据库查询,会阻塞整个UI。
Specifically, if everything is happening in a single thread, performing long operations such as network access or database queries on the UI thread will block the whole user interface.
如果UI线程需要处理每一件事情,那些耗时很长的操作——诸如访问网络或查询数据库等——将会阻塞整个UI(线程)。
Specifically, if everything is happening in the UI thread, performing long operations such as network access or database queries will block the whole UI.
应用推荐