计算机英语第六单元,计算机专业英语第六版第十单元课后汉译英,We do use other forms....这个do...
同樣的 ,多線程也存在許多缺點 ,在考慮多線程時需要進行充分的考慮。
多線程的主要缺點包括:Similarly, multi thread also has many shortcomings, in the consideration of the need for the full consideration of multiple threads. The main disadvantages of multi threading include:(1)等候使用共享資源時造成程序的運行速度變慢。
這些共享資源主要是獨占性的資源 ,如打印機等。
(1) waiting for the use of shared resources, the running speed of the program is slow. These shared resources are exclusive resources, such as printers, etc..(2)對線程進行管理要求額外的 CPU開銷。
線程的使用會給系統帶來上下文切換的額外負擔。
當這種負擔超過一定程度時,多線程的特點主要表現在其缺點上,比如用獨立的線程來更新數組內每個元素。
(2) an additional CPU overhead is required for the thread management. The use of threads will give the system the additional burden of context switching. When the load exceeds a certain level, the characteristics of multi thread are mainly expressed in its disadvantages, such as using independent thread to update each element in the array.(3)線程的死鎖。
即較長時間的等待或資源競爭以及死鎖等多線程癥狀。
(3) deadlock of thread. That is, waiting for a longer period of time to wait or resource competition and deadlock and other multi thread symptoms.(4)對公有變量的同時讀或寫。
當多個線程需要對公有變量進行寫操作時,后一個線程往往會修改掉前一個線程存放的數據,從而使前一個線程的參數被修改;另外 ,當公用變量的讀寫操作是非原子性時,在不同的機器上,中斷時間的不確定性,會導致數據在一個線程內的操作產生錯誤,從而產生莫名其妙的錯誤,而這種錯誤是程序員無法預知的(4) at the same time, read or write to the public variable. When multiple threads need to write operation to the public variable, a thread tend to modify off before a thread storage data, so that a thread parameters are modified; in addition, when public variable read and write operations are non atomic, on different machines, interrupt time of uncertainty, lead to the data in a thread operation generated errors, resulting in inexplicable error, and this error is unpredictable programmer
總結
以上是生活随笔為你收集整理的计算机英语第六单元,计算机专业英语第六版第十单元课后汉译英,We do use other forms....这个do...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Apollo进阶课程㉟丨Apollo R
- 下一篇: 微博API接入初识【cxn专用】