I apologize posting script without explanation 

ASEP is Asymetric Simple Exclusion Process

and ZRP is Zero Range Process

using ASEP and ZRP in cellrer automann to simulate 

 queue or procession of Vehicles or Animals (like Ant or Turtle)
 
 
   ] a=. 16>24?24
1 1 1 0 1 1 0 0 0 0 1 0 0 1 1 1 1 1 1 0 1 1 1 1
   
 in  ASEP  only first person of queue may go forward
   
  a,: 0 forward_sub2_circuit a
1 1 1 0 1 1 0 0 0 0 1 0 0 1 1 1 1 1 1 0 1 1 1 1 NB. a
1 1 0 1 1 0 1 0 0 0 0 1 0 1 1 1 1 1 0 1 1 1 1 1 NB. ASEP
      f     f         f               f 
      
  ZRP is kind of Pop divergence  and using it to change Lane
  
  color fuchsia shows  when  did ZRP and changed Lane
  
  one step is assumed one second and repeat it until 2 min.
  
  I run this script by  Core2 duo 1.8 MHZ
  
  may be another core is a big Fan 



NB. ---------------------------------------- 
> M. Shimura wrote:
> > attached script is turtle parade using asep and turtle graphics
> > 
> > How can I use multi thread in this script
> > Best regards
> 
> I believe J currently does not use any multi threading.
> 
> Fraser
> 
> 

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to