Main - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Main

Description:

Start Timer - launch Timer thread or. add to existing Timer. Store - move buffer ... Timer. Zero or more. Timer Threads. per Application. Includes Standard and ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 8
Provided by: Fue
Category:
Tags: main | online | timer

less

Transcript and Presenter's Notes

Title: Main


1
Main
Launch Process Thread(s)
Where the application specific action occurs
Launch Timer Thread(s)
Where the application specific action occurs
Launch Connect Thread(s)
Clients will connect to Servers
Launch Accept Thread(s)
Servers will accept connections from clients
Wait for Thread Completion
2
Connect Thread
Zero or more Connect Threads per Application
Wait for Invalid Connection
ACE function
Connect to Target
Error
Wait for Completion
Delay
Input Thread Exists?
No
Launch Input Thread
Yes
Output Thread Exists?
No
Yes
Launch Output Thread
3
Accept Thread
Zero or more Accept Threads per Application
Wait for Incoming Connection
ACE function
Launch Output Thread
Launch Input Thread
Wait for Invalid Connection
Delete Input Thread
Delete Output Thread
4
Output Thread
One Output Thread per Connection
Wait for OK Connection
Wait for Entry in Output Queue
Disconnected
Check Connection Status
Get next Buffer in Output Queue
Zero count of attempts
ACE function
Increment Count of Attempts
Send Message
(Delay?)
No
Check Connection Status
Wait for Completion
Too many Attempts?
OK
Timeout
Success
Disconnected
Yes
Remove Buffer from Output Queue, Release Buffer
Error
Invalidate Connection
5
Input Thread
One Input Thread per Connection
Wait for OK Connection
Get Free Buffer
Read Message into Buffer
ACE function
Wait for Completion
Invalidate Connection
Error
Success
Add Buffer to Process Queue
6
Process Thread
One or more Process Threads per Application
Wait for Entry in Process Queue
Get next Buffer in Process Queue
Dispatch
  • Includes Standard and
  • Application Specific Actions
  • For example
  • Respond - get free buffer, insert reply,add to
    Output Queue
  • Start Timer - launch Timer thread oradd to
    existing Timer
  • Store - move buffer to holding queue
  • Disconnect - set connection status toinvalid

7
Timer Thread
Zero or more Timer Threads per Application
Wait for Timer Expiration
Process Timer
Includes Standard and Application Specific Actions
Reset Timer
Write a Comment
User Comments (0)
About PowerShow.com