I do full research, and i have found a freebasic lib for use multi-thread with Freedos and dpmi
Source code of THREADS.BAS :
Code: Select all
sub threadProcedure( byval userdata as any ptr )
for i as integer = 0 to 4
print i
sleep 500, 1
next
end sub
print "starting thread..."
dim as any ptr threadid = threadcreate( @threadProcedure, 0 )
print "waiting for thread to finish..."
threadwait( threadid )
print "finished"
sleep
With or not with -mt i have the same problem
I have tested of just copy "libfbmt.a" but i have the same problem