日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

计算机英语第六单元,计算机专业英语第六版第十单元课后汉译英,We do use other forms....这个do...

發(fā)布時間:2023/12/10 编程问答 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 计算机英语第六单元,计算机专业英语第六版第十单元课后汉译英,We do use other forms....这个do... 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

同樣的 ,多線程也存在許多缺點 ,在考慮多線程時需要進行充分的考慮。

多線程的主要缺點包括: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開銷。

線程的使用會給系統(tǒng)帶來上下文切換的額外負擔。

當這種負擔超過一定程度時,多線程的特點主要表現(xiàn)在其缺點上,比如用獨立的線程來更新數(shù)組內每個元素。

(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)對公有變量的同時讀或寫。

當多個線程需要對公有變量進行寫操作時,后一個線程往往會修改掉前一個線程存放的數(shù)據(jù),從而使前一個線程的參數(shù)被修改;另外 ,當公用變量的讀寫操作是非原子性時,在不同的機器上,中斷時間的不確定性,會導致數(shù)據(jù)在一個線程內的操作產(chǎn)生錯誤,從而產(chǎn)生莫名其妙的錯誤,而這種錯誤是程序員無法預知的(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...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。