there are so many cores

Just another WordPress.com site

Diagram the design a little

After this last pause in development, I found myself asking, “How does this work?” The design has become quite complex. Any time away and it fades from memory.

So I am spending time to create design artifacts.

Flow from user application to the scheduler:

Interaction between scheduler threads:

wait(ptid, trace)        _traceMap        _boss        _work

   ----------lock---------->
   ---SingleTrace(trace)--->
   -------------------lock------------------>
   ------------------signal-----------------> WAKE UP
   ------------------unlock----------------->
   WHILE FLAG
   ----------wait---------->
                            <------lock------
                                              COLLATE
                            <-----unlock-----
                                             ----lock---->
                                              ENQUEUE
                                             --broadcast-> WAKE UP
                                             ---unlock--->
                                              SLEEP        COLLATE
                                                           DISPATCH
                                                           HISTORY
                            <------------lock-------------
                                                           REMOVE FLAG
                            <----------broadcast----------
                            <-----------unlock------------
                                                           SLEEP
   ---------unlock--------->

Flow from the scheduler to devices:

The complex stuff is under the translator inside the jit/ module. I want to spend a little time diagramming the JIT before integrating GATLAS.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: