ประโยคภาษาจีน : 中文句子 |
---|
yòng yú 用于 sōu suǒ 搜索 sù shù 素数 de 的 xún huán 循环 zài 在 liǎng gè 两个 dì fāng 地方 jiǎn chá 检查 shì fǒu 是否 yǒu 有 zhōng duàn 中断 yī 一 chù 处 shì zài 是在 xún huán 循环 de 的 tóu bù 头部 lún xún 轮询 fāng fǎ 方法 lìng yī 另一 chù 处 shì 是 diào yòng 调用 zǔ sè 阻塞 fāng fǎ 方法 |
The prime-seeking loop checks for interruption in two places: once by polling the isInterrupted() method in the header of the while loop and once when it calls the blocking BlockingQueue.put() method. |