精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 英語翻譯

    英語翻譯
    7.When a variable in use can be modified from all threads in a team,it is necessary to
    ensure that only one thread at a time is writing/updating the memory location of the
    considered variable,otherwise unpredictable results will occur.
    8.This directive,whether explicit or implied,identifies a sequence point at which the implementation
    is required to ensure that each thread in the team has a consistent view of
    certain variables in memory:the same correct value has to be seen by all threads.This directive
    must appear at the precise point in the code at which the data synchronization
    is required.
    At a first glance it seems that this directive is not necessary,since in general the
    writing/updating of shared variables has been done in such a way,that only one thread
    at a time is allowed to do that.But this is only true in theory,because what the OpenMPimplementation
    does to simulate the ”one thread at a time” feature is not specified by
    the OpenMP specification.This is not a fault,moreover it is a door left open to the
    OpenMP-implementations so that they can try to optimize the resulting code.
    9.In certain do-loops some of the statements executed at each iteration need to be evaluated
    in the same order as if the do-loop would be executed sequentially.
    英語人氣:925 ℃時間:2020-06-15 22:24:46
    優(yōu)質(zhì)解答
    7.當(dāng)變量在使用中可以從堆棧中的所有線程修改,有必要
    確保只有一次一個線程讀寫的內(nèi)存位置
    考慮變量,否則會發(fā)生不可預(yù)知的結(jié)果.
    8.這個指令,明確或暗示,標識序列點的實施
    必須確保每個線程具有一致的方向
    某些變量在內(nèi)存中:同樣的正確的指針必須指向所有線程.該指令
    必須出現(xiàn)在代碼中的精確分際在數(shù)據(jù)同步
    是必需的.
    初看起來這似乎是沒有必要的指示,一般自
    寫作/ 更新共享變量做了這樣一種方式,只有一個線程
    在時間允許這樣做.但這只是在理論上正確的,因為什么OpenMPimplementation
    并模擬一次“功能”沒有一個線程指定
    OpenMP的規(guī)范.這不是一個錯誤,而且這是一個敞開大門的
    OpenMP的建置作業(yè),讓他們可以嘗試優(yōu)化的代碼.
    9.必須做的是,在每個循環(huán)迭代執(zhí)行的一些發(fā)言需要進行評估
    在相同的順序,如果這樣做,將循環(huán)順序執(zhí)行.
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機版