开发中的英语积累 P9:Dispatch、Multi、Retain、Restore、Yield、Interrupt

英文词性

词性说明举例
n.名词student:学生
pron.代词you:你
adj.形容词happy:高兴的
adv.副词quickly:迅速地
v.动词run:跑
num.数词three:三
art.冠词the:这个
prep.介词at:在...
conj.连词and:和
interj.感叹词wow:哇

一、Dispatch

public void dispatchOptionsMenuClosed(@NonNull Menu menu) {
   ...
}
  • 词性:v.

  • 含义:调度,派遣,发送

# 事件调度

event 【dispatch】
# 消息分发

message 【dispatch】
# 事件循环负责调度和处理所有用户界面事件。

The event loop is responsible for 【dispatching】 and handling all UI events.
# 消息队列系统将任务分发给可用的工作节点。

The message queue system 【dispatches】 tasks to available worker nodes.

二、Multi

public void dispatchMultiWindowModeChanged(boolean isInMultiWindowMode) {
   ...
}
  • 词性:n.

  • 含义:多个,多数

# 多平台

【multi】-platform
# 多线程

【multi】-thread
# 这个框架支持多平台开发,包括 Web、移动和桌面。

This framework supports 【multi】-platform development, including web, mobile, and desktop.
# 我们需要实现多语言支持来满足全球用户的需求。

We need to implement 【multi】-language support to meet the needs of global users.

三、Retain

@Deprecated
@Nullable
public List<Fragment> retainNonConfig() {
   ...
}
  • 词性:v.

  • 含义:保留,保持,维持

# 保留引用

【retain】 reference
# 内存保留

memory 【retain】
# 缓存系统会保留频繁访问的数据以提高性能。

The caching system 【retains】 frequently accessed data to improve performance.
# 为了向后兼容,新版本必须保留所有旧的 API 接口。

To maintain backward compatibility, the new version must 【retain】 all old API interfaces.

四、Restore

@Deprecated
public void restoreAllState(@Nullable Parcelable state, @Nullable FragmentManagerNonConfig nonConfig) {
   ...
}
  • 词性:v.

  • 含义:恢复,还原,修复

# 恢复备份

【restore】 backup
# 状态还原

state 【restore】
# 系统管理员可以从备份中恢复丢失的数据。

The system administrator can 【restore】 lost data from backups.
# 应用程序在崩溃后能够自动恢复用户的工作状态。

The application can automatically 【restore】 the user's working state after a crash.

五、Yield

public static native void yield();
  • 词性:v.

  • 含义:让步,产生,产出

# 线程让步

thread 【yield】
# 产生结果

【yield】 result
# 这个生成器函数会逐个产生序列中的每个元素。

This generator function will 【yield】 each element in the sequence one by one.
# 在多线程编程中,yield() 方法可以让当前线程让出 CPU 时间。

In multi-threading programming, the yield() method allows the current thread to 【yield】 CPU time.

六、Interrupt

public class InterruptedException extends Exception {
   ...
}
  • 词性:v.

  • 含义:中断,打断

# 硬件中断

hardware 【interrupt】
# 中断处理

【interrupt】 handling
# 当用户按下键盘时,会触发一个硬件中断。

When a user presses a key, it triggers a hardware 【interrupt】.
# 操作系统必须能够快速响应各种中断请求。

The operating system must be able to quickly respond to various 【interrupt】 requests.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值