It is currently Tue Feb 07, 2012 9:03 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: threads in sequence diagrams
PostPosted: Mon Mar 29, 2010 11:05 am 

Joined: Wed Jan 13, 2010 6:18 am
Posts: 10
Location: New Delhi
Hi Friends,

Can any one tell me how to show threads in Sequence diagrams.



_________________
Thanks and Regards
Satyam
New Delhi
Offline
 Profile  
 
 Post subject: Re: threads in sequence diagrams
PostPosted: Wed Apr 21, 2010 6:16 am 

Joined: Sat Oct 18, 2008 9:32 pm
Posts: 10
Well,
There are of course several ways to show threads in sequence diagrams.
Usually I start modelling threads (or thread of control) with one composite (structured) class that controls and maintain all thread specific attributes (such as thread prio, sched policy, affinity, name etc). This "Thread Boundary class" defines also the refined software architecture in its inner structure where all contained parts executes within the thread context of the Thread Boundary class. If you then add a sterotype ,i.e <THREAD_A>, to the Thread Container class this will show up nicely in the sequence diagram.

One example of how to model the actual parallel execution is shown in Figure 17 in http://www.ibm.com/developerworks/ratio ... /3101.html.
In short:
1. Model one execution block, within the object of the same thread, with one interaction operator
2. Set the type of of this interaction operator to "parllell" (you can also define a "PARALLEL" sterotype for these types interaction operators")
3. Add execution occurances
4. Add operand seperators for the different parallel activities

Best Regards//
LGJ


Offline
 Profile  
 
 Post subject: Re: threads in sequence diagrams
PostPosted: Wed Apr 21, 2010 12:33 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
"the refined software architecture in its inner structure where all contained parts executes within the thread context of the Thread Boundary class"

Slight deviation from the purpose of the thread but you should be aware that there was a long-standing issue with Rhapsody where this only applied to the 'first level' reactive parts in a composite class. Reactive parts within parts were erroneously using the main thread (default) as their active context. I'm using 7.5.1.1 where the problem is now fixed (a class dependent setActiveContext is now generated for each reactive class). I know the problem still existed as recently as 7.4 but I'm not sure when it got fixed.

Back to the main subject. Colour your execution occurances per thread.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron

suspicion-preferred