Re: How to create a thread ?

BERTRAND Joel <[email protected]> Mon, 18 Oct 2010 11:53:51 +0200
Newsgroups gmane.comp.micro-kernel.l4.l4ka.general
Message-ID <[email protected]>
	Some news.

 > showqueue

CPU 0:  accounted tcb ROOTTASK, max_prio 255

         [255]: (SIGMA0) ROOTTASK
         [100]: 0000003b00000001
         [000]: (KRN_THRD)


CPU 1:  accounted tcb IDLETHRD, max_prio 4294967295

 > showtcb
tcb/tid/name [current]: 0000003b00000001
=== TCB: ffffffffc0aaa000 === ID: 0000003b00000001 = 
00000000bf000600/ffffffffc0a93400=== PRIO: 100 === CPU: 0 === ===
UIP: 0000000001002830   queues: Rswl              wait : NIL_THRD 
  :NIL_THRD           space: ffffffffc0a90000
USP: 0000000001063630   tstate: RUNNING           ready: 
0000003b00000001:0000003b00000001   pdir : 0000000000a91000
KSP: ffffffffc0aaaf20   sndhd : NIL_THRD          send : NIL_THRD 
  :NIL_THRD           pager: ROOTTASK
total quant:                   0us, ts length  : 
10000us, curr ts:            10000us
abs timeout:                   0us, rel timeout:                      0us
sens prio: 100, delay: max=0us, curr=0us
resources: 0000000000000000 []   flags: 0000000000000000 [ts]
partner: ROOTTASK, saved partner: NIL_THRD, saved state: RUNNING , 
scheduler: ROOTTASK

	IP and SP are sent to thread. IP value seems to be good :
cauchy:[~/openvms/mnt/boot] > nm vmskernel.sys | grep 2830
0000000001002830 T _Z9vms$pagerv

	But thread doesn't start. I don't understand why tstate contains 
RUNNING. Any explanation ?

	Regards,

	JKB