Thread 1 enters the if block, but is preempted by thread 2 before executing the line at //2.
线程1进入if代码块,但在执行 //2 处的代码行时被线程 2 预占。
The straight forward approach would be to add a fourth IF block after looking for credentials from the form fields.
简单的方法是在寻找来自表单字段的凭证之后添加第四个IF块。
When a call to the log method is found, we check to see if the program counter is outside the if block determined earlier.
找到对log方法的调用后,我们检查程序计数器是否在前面确定的if块外面。
The reason the idiom in Listing 3 is deficient is because obj is not guaranteed to be non-null after the body of the if block completes.
清单3中的风格不够好的原因在于,if块的主体结束之后ob j不一定是非空值。
After working with obj after this if block, you should set obj to null to enable the garbage collector to reclaim this object to take full advantage of weak references.
在使用这个if块之后的obj之后,您应该将ob j设置为null,从而让垃圾收集器能够回收这个对象以充分利用弱引用。
Because I am not wrapping the (Out of Stock!) message in an HTML tag element, Razor can’t implicitly determine that the content within the @if block is the start of a content block.
由于我没有将消息“已售完!” 嵌套在HTML标签元素内,Razor不能隐式判断@if块中的内容是否是一个内容块的开始。
Anyway, the problem is to do with scope - if you want to declare variables within an if block it needs to have curly braces and then the variables are only valid within that brace block.
不管怎样,问题是要做的范围-如果你想在一个声明变量如果块需要大括号,则变量是唯一有效的内支撑块。
Why? Because that block identifies a set of things that I'm going to do if the test is true.
为什么呢?因为该代码块指定了在测试正确的情况下,我将进行的一系列操作。
Policy Injection Application Block can still be used if AOP functionality is needed.
如果需要AOP功能,依旧可以使用策略注入应用程序块。
Do code path analysis to see if there is a synchronized block in the code that is blocking requests to execute concurrently.
进行代码路径分析,以查看阻塞请求并发执行的代码中是否存在同步阻塞。
If you want to block other content, an option in the right-click context menu helps you block certain elements like online advertisements.
如果你要阻止其它内容的显示,可以在右键菜单中找到阻止内容,从而阻挡一些在线广告。
If the block found in the size tree is exactly the required size, the block is removed from both the size and the address tree and then returned to the caller.
如果在大小树中找到的块正好是请求的大小,那么从大小树和地址树中删除这个块并返回给调用者。
If you allocate a block of memory on the heap that is not already in the cache, execution will stall while the contents of that memory are brought into the cache.
如果在堆的顶部分配的内存块不在缓存中,执行会在内存内容装入缓存的过程中出现延迟。
The logic block is only reached if the focused application is the same between input reads.
仅当输入读取之间的获得焦点的应用程序是同一个应用程序时,才会到达逻辑块。
If the parent is not block-level, the dimensions will be ignored.
如果父元素不是块级元素,尺寸将被忽略。
For instance, the read will occur from the snapshot only if the source block has changed since the snapshot was created.
例如,只有在自创建快照以后源数据块被更改,才会从快照读取。
Late Tuesday, however, some Facebook users apparently had all of these potentially irritating notifications turned back on — even if they'd tried to block them.
然而,周二的晚些时候,一些脸书用户显然收到了所有那些潜在的恼人的邮件提醒——就算他们尝试去阻止它们也无济于事。
If the request block is requesting HTML, it executes the first closure; if it's requesting XML, it executes the second.
如果发出请求的代码块是在请求HTML,这段代码会执行第一个闭包;如果发出请求的代码块在请求XML,这段代码会执行第二个闭包。
If Firefox is configured to block pop-ups, click allow to allow the installation window to open.
如果Firefox配置为阻止弹出窗口,单击Allow允许打开安装窗口。
First in our list of subroutines is a simple logic block to check if the accelerometer is available for reading.
在我们的子程序清单中首先是一个简单的逻辑块,用来检查是否有加速器可读。
Count the number of ones in each byte of the 8-byte block; if the number of ones is even, make it odd by setting the least significant bit to one.
统计8字节块中每字节中的1的个数,如果1的个数为偶数,那么就设置最低位为1使它成为奇数。
When using Ajax on the client, it is best if you don't block the client, and thus the asynchronous calls. Blocking would defeat the purpose of using Ajax.
在客户机上使用Ajax时,最好不要阻塞客户机,这样就不会阻塞异步调用。
In this case, you're using a simple if... Else block to see whether any value stored in the state is accessible via the random key.
在本例中,我们用一个简单的if . . .else块来判断在状态中保存的值是否可通过random键访问。
A wants method executes the corresponding code block if the method name matches the type in the HTTP Accept header.
如果方法名称与HTTPAccept头中的类型匹配,wants方法执行对应的代码块。
Memory blocks can be reached in one of two ways -- if the user program holds a reference to that block in a root, or if there is a reference to that block held in another reachable block.
可以以两种方式之一访问内存块 ――或者用户程序在根 (root)中有对这一内存块的引用,或者在另一个可到达的块中有对这个块的引用。
As in most every language, Scala's if evaluates a conditional expression, then proceeds to a block if the result is true or branches to an alternate block if the result is false. A simple example.
和大多数语言一样,Scala的if测试一个条件表达式,然后根据结果为真或假来跳转到响应语句块中。
These areas allow tasks to use memory without being required to block if the garbage collector needs to free memory in the heap.
如果垃圾收集器需要释放堆中的内存,则这些内存区域将允许任务使用内存而不需要中断任务。
It seems usual to go shopping with your colleagues during lunch time if there is a bustling block around your workplace.
如果你的单位正好位于繁华街区,趁着午饭时分拉着同事一起去血拼大概也是常事。
It seems usual to go shopping with your colleagues during lunch time if there is a bustling block around your workplace.
如果你的单位正好位于繁华街区,趁着午饭时分拉着同事一起去血拼大概也是常事。
应用推荐