buffers只有btyebuffer能被channel使用
線程在channel中中斷,會(huì)使當(dāng)前channel關(guān)閉,這樣設(shè)計(jì)的目的是為了兼容不同系統(tǒng),防止出現(xiàn)不可預(yù)料的情況出現(xiàn)
sather將channel中的數(shù)據(jù)寫(xiě)到多個(gè)Buffer中
gather將多個(gè)Buffer中的數(shù)據(jù)寫(xiě)入channel中
buffers只有btyebuffer能被channel使用
線程在channel中中斷,會(huì)使當(dāng)前channel關(guān)閉,這樣設(shè)計(jì)的目的是為了兼容不同系統(tǒng),防止出現(xiàn)不可預(yù)料的情況出現(xiàn)
sather將channel中的數(shù)據(jù)寫(xiě)到多個(gè)Buffer中
gather將多個(gè)Buffer中的數(shù)據(jù)寫(xiě)入channel中