<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi JackWee,</div><div><br></div><div>Generally, and unless very very carefully used for specific subsets of tasks, threads <b>cannot be</b> used in NS-3 simulation.  Therefore, it is "normal" that NS-3 segfaults.</div><div><br></div><div>If you need to do something "in parallel", you should schedule two event to be run at the same time and NS-3 will take care that they "run" at the same simulation time (each event in NS-3 always takes 0 simulation time).</div><div><br></div><div>--</div><div>Alex</div><br><div><div>On Sep 17, 2013, at 6:43 PM, JackWee <<a href="mailto:jackwee_yao@163.com">jackwee_yao@163.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial; ">Hi Alex<div>We`re intend to create a forward strategy which some thread function would be used to implement it.</div><div>So we write some lines as follow:</div><div><div><br></div><div>pthread_create(&id_1,NULL,a.OnProbe,&(para));</div><div>pthread_create(&id_2,NULL,a.TimeCount,&(para_1));</div></div><div><div>pthread_join(id_1,NULL);</div><div>pthread_join(id_2,NULL);</div></div><div><br></div><div>Everything is OK while ./waf --run,but something weird happened when Simulate(F3).</div><div>After the program run for few seconds,the message below appeared.</div><div><span><hialex.jpg></span></div><div><br></div><div>we tried a lot to solve it,but failed.Any suggestion???Thanks a lot!!!</div><div>                                          &nb!
 sp;  
 ;                                                                                              sincerely</div><div>                                                                                                                                           JackWee</div><div><br></div></div></blockquote></div><br></body></html>