單項(xiàng)選擇題C/S模式下利用TcpClient類和TcpListner類和多線程技術(shù)構(gòu)建服務(wù)端架構(gòu)時,為了能夠使得服務(wù)器端能夠隨時接受客戶端的連接請求,并能夠隨時和任一客戶端進(jìn)行通信。假設(shè)至少有n個客戶端,需要的輔助線程數(shù)量至少有()個。
A.n
B.n+1
C.n-1
D.n*n
您可能感興趣的試卷
你可能感興趣的試題
1.多項(xiàng)選擇題WCF特點(diǎn)描述正確的是()
A.以服務(wù)為中心
B.支持多種傳輸協(xié)議
C.支持多種消息交換格式
D.具有統(tǒng)一性、安全性和可擴(kuò)展性
2.單項(xiàng)選擇題希望對Add方法能夠被客戶端遠(yuǎn)程調(diào)用,下列關(guān)于服務(wù)協(xié)定設(shè)計(jì)正確的是()
A.[ServiceContract]public Class Service1{[Operation Contract]double Add(double n1,double n2)}
B.[ServiceContract]public Interface IService1{[Operation Contract]double Add(double n1,double n2)}
C.[ServiceContract]public Interface IService1{double Add(double n1,double n2)}
D.public Interface IService1{[Operation Contract]double Add(double n1,double n2)}