[j-sim-users] Time in j-sim

Hung-ying Tyan tyanh at ieee.org
Mon Apr 24 02:27:44 CDT 2006


Instead of a simulation runtime, try using drcl.comp.ARuntime as the
runtime.  ARuntime is not a simulation runtime, meaning that
everything occurs in real time.

If you use Tcl, specify:

       attach_runtime ?<# of threads, default=1>?  .

instead of

       attach_simulator .

Hung-ying

On 4/23/06, zakaria Hakim <zakariasim at yahoo.com> wrote:
> Hi,
>
> While testing some code that i am porting to j-sim, i
> found a problem related to time.
>
> In my application i have two threads.Once one thread
> is running,it is stopped if an event occurs in the
> other thread. But this event does not occur until the
> current thread ends.This is not the case when the
> application is runned outside j-sim.
>
> So made someexperimentswith j-sim:
> i runned 1 milliard iterations.And a message is
> displayed with the current time (using the
> function"getTime()") each 1 hundred millions. Each
> iteration takes about 5 seconds before displaying the
> following message. But what is very surprising,is that
> the time displayed is the same for every iteration.
> So,i found that j-sim gives the same time for events
> that don't occur in the same time.
>
> Somebody can explain this to me?
>
> In my case i want to have the real time for every task
> processed, is there anyway to do this?
>
> Thank you
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> j-sim-users mailing list
> j-sim-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/j-sim-users
>



More information about the j-sim-users mailing list