Uhm,
this sample puts both cpus at 100%
function main()
hb_threadStart( @t() )
while .t.
enddo
return
function t()
while .t.
enddo
return
but if in main thread I call Inkey(100) CPUs start spiking again...
Maurilio.
PS. BTW, If I press Alt-C process does not stop, probably only single thread
gets stopped. See here, I had to press Alt-C two times.
(E:\repository\harbour-svn\tests\mt)mau
Cancelled at: T (9) in mau.prg
Cancelled at: INKEY (0)
MAIN (5) in mau.prg
(E:\repository\harbour-svn\tests\mt)
--
__________
| | | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour