Puts to stdout not happening if expect loaded in 2 threads

I am using following version of Active Tcl on windows 10

C:\thread>tclsh
% puts $tcl_version
8.6
% package require Thread
2.6.6
% package require Expect
5.43.2

I am trying to use Expect in 2 threads. But puts to stdout not happening when package require called in both threads.

package require Thread

thread::create {
package require Expect
exp_log_user 1
puts “hello”
}

thread::create {
package require Expect
exp_log_user 1
puts “hello2”
}

after 2000

output:

C:\thread>tclsh samp2.tcl
hello

C:\thread>

Can someone please help guide on this.

Thanks in advance.
uv.

There is no version of the Expect port for Windows which is compatible with Windows 10.

Investigate Powershell if you must run something like Expect on Windows 10 or 11.
If you must use Tcl and Expect, you can’t run it on anything newer than Windows 7 SP2.