【问题标题】:what does it mean by "reading sth to memory" and "reading sth into memory"“将某事读入内存”和“将某事读入内存”是什么意思
【发布时间】:2021-02-26 16:08:26
【问题描述】:

我所知道的read & write 操作是read 操作从某处读取数据和write 操作将数据存储到内存。话虽如此,read sth from memorywrite sth to memory 完全可以理解,但 read sth into memoryread sth to memory 对我来说毫无意义。

【问题讨论】:

  • "sth" 是英语的 书面 缩写(非口头)“something”,因此“read sth from memory”的意思是“从记忆中读取某物”。 (也就是说,我个人认为非英语母语者使用“sth”的频率远高于母语者)
  • “read sth into memory”可能是“write sth [something] into memory”的拼写错误
  • @Dai 我明白sth 的意思。顺便说一句,感谢您为我澄清“读到记忆”这句话。我一直在寻找这个短语的含义,但没有得到任何答案。奇怪的是,这个错字被广泛用于在线文章、stackoverflow 上的问题,甚至出现在书籍中,让我们非常困惑
  • @HunqVux 一些上下文会有所帮助,特别是因为“read”和“write”有许多与内存无关的用途。最有可能的是,“read sth into memory”只是“read sth from others and write it to memory”的简写。例如,“读取下一个键盘事件[并将其保存到输入队列]到内存中”。

标签: memory terminology semantics


【解决方案1】:

从 CPU 的角度来看,read sth into memoryread sth to memory 通常意味着将数据从磁盘(或其他慢得多的设备)加载到内存中。

【讨论】:

  • Dai 的回答对我来说更有意义,至少在我的上下文中。我已经对这些短语进行了一些搜索。虽然我没有找到合适的答案,但似乎人们在read sth into memory 时真正想做的实际上是write sth into memory
  • dxiv的回答也很棒
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-02-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-09-18
  • 1970-01-01
  • 2014-08-10
相关资源
最近更新 更多