master-slave pattern

Click here to load reader

Upload: sauda

Post on 08-Jan-2016

56 views

Category:

Documents


6 download

DESCRIPTION

POSA1 Study 발표자 : ( javajigi ) Sw -Design, 장회수. Master-slave pattern. 선호하는 작업 방식. 작업지시의 안티 패턴. 체계적인 작업 지시. 서비스 ? 시키면 오는 … ?. 협력 ( Collaboration ). 조직적으로 목표를 달성하자. 조직화의 원칙. 역할의 분리 정책과 구현의 분리 분할 정복. 조직화 패턴. Master-Slave 패턴 장애 허용성 병렬 계산 계산 정확도. Master-Slave?. - PowerPoint PPT Presentation

TRANSCRIPT

1

Master-slave patternPOSA1 Study : (javajigi) Sw-Design,

? ?

( Collaboration )

Master-Slave

Master-Slave?

MasterSlavesMaster Slave .Sample, TSP, traveling salesman problem ( ) 6.0828*10^62 NP Context ()

Problem .

Forces ? , . . .

? ? ?Solution

MasterSlaves Master-Slave Structure Master

.

.

.Slave Slave

. - 17SlavesubServiceMastersplitWorkcallSlavescombineResults

servicedelegates+2Master-Slave ClassDiagram18 ClientMasterSlave 1resultServicesplitWorksubServicecombineResultcallSlavesResult Slave-1subServiceResult Slave-1Slave 219

.

, .

, .

.

.

20

.

, .

, .

.

.

21

22MasterSlaves /

TSP ? 51!

23MasterSlaves

1. .

.24MasterSlavesTSP

2.

25( )3. MasterSlaves

1

Repository

264. .

275. Implementaion Master (Contd)1~3 .

Master-Slave , , .

, ) TSP .

Strategy .

285. Implementaion Master . ? ? ? ?

.

Strategy pattern .

Master-Slave . Singleton pattern .

29 Master-Slave Master-Slave Master-Slave Slaves as Process Slaves as Threads Master-Slave 30 , , Master-Slave 31

Barrier

Master-Slave 32 ( ) .

.

Master-Slave MastersplitWorkcallSlavescombineResults

servicemySlavesAbstractSlavesubServiceConcreteSlaveAsubServiceConcreteSlaveBsubService 33 , Master-Slave

Remote Proxy ( ) .

IPC(Interprocess communication) .Forwarder-Receiver Client-Dispatcher-Server

Slaves as Process 34 .

Active Object .

? ?

Slaves as Thread 35 .

Master-Slave 36 ( gaggle )

37 . ( separation of concerns ) .

. . . 38See AlsoProxy Pattern

Singleton Pattern

Forwarder-Receiver PatternClient-Dispatcher-Server Pattern

Broker PatternCoordinator PatternActive Object

: 100%

39ReferencesDesign Patterns: Elements of Reusable Object-Oriented Software, E. Gamma, R.Helm, R. Johnson, J. Vlissides, Addison-Wesley, 1995

Pattern Oriented Software Architecture : A System of Patterns, F. Buschmann, R.Meunier, H. Rohnert, P. Sommerlad, M. Stal,Wiley, 1996

( ) ,

Devpia ( Architecture , POSA1 : Master-Slave)

40