The preemptive threading model requires that threads use shared resources appropriately , while the cooperative model requires threads to share execution time 搶占式線程模型要求線程正確共享資源,協(xié)作式模型卻要求線程共享執(zhí)行時(shí)間。
Most books on java threading present a litany of everything wrong with java threading model and a class library of band - aid solutions to those problems 我稱這些類為急救包,是因?yàn)樗鼈兯芙鉀Q的問(wèn)題本應(yīng)是由java語(yǔ)言本身語(yǔ)法所包含的。
The lightweight threading model created by the servlet architecture is in no way compromised by a servlet or jsp file creating , reading , or modifying an 由servlet體系結(jié)構(gòu)創(chuàng)建的輕量級(jí)線程模型決不會(huì)因?yàn)閟ervlet或jsp文件創(chuàng)建、讀取或修改
Bill s proposal is not as broad as what was presented in this article , primarily focusing on getting the existing threading model to work in a reasonable way Bill的提議并不如本文所推薦的那么廣,他主要致力于讓現(xiàn)有的線程模型以更為合理方式運(yùn)行。
The determination of whether the threading model is preemptive or cooperative is up to the implementers of the virtual machine and can vary across different implementations 判斷是搶占式還是協(xié)作式的線程模型,取決于虛擬機(jī)的實(shí)現(xiàn)者,并根據(jù)各種實(shí)現(xiàn)而不同。
Attempting to explicitly initialize com with one threading model when the clr has already initialized com to another threading model can cause your application to fail 當(dāng)clr已經(jīng)將com初始化為線程模型時(shí),如果嘗試用另一個(gè)線程模型顯式初始化com ,則可能會(huì)導(dǎo)致應(yīng)用程序失敗。
I really think that the java language is a great programming language ; but i also think that the java threading model simply wasn t thought - out well enough , and that s a pity 我確實(shí)認(rèn)為java語(yǔ)言是一種偉大的編程語(yǔ)言;但是我也認(rèn)為java的線程模型設(shè)計(jì)得還不夠完善,這是一件很可惜的事情。
The common language runtime provides a thread model in which classes fall into a number of categories that can be synchronized in a variety of different ways depending on the requirements 公共語(yǔ)言運(yùn)行庫(kù)提供一個(gè)線程模型,在該模型中,類分為許多類別,這些類別可以根據(jù)要求以各種不同的方式進(jìn)行同步。
If you use a non - default entry point , specify the threading model either by using clrthreadattribute or by placing the threading attribute on the non - default entry function , and then specify the non - default entry point with 如果使用非默認(rèn)入口點(diǎn),則先使用/ clrthreadattribute或?qū)⒕€程屬性置于非默認(rèn)入口函數(shù)來(lái)指定線程模型,然后使用