it looks like when I create a new thread ( using threads->create ),
the child thread will copy every data from main thread, which can cause a huge amount of memory usage.
but if I put those data declaration after child thread had been created
, then the memory usage is normal...
my question is: is there a way to prevent child thread from copying main thread's data structure? or the best practice is using Coro instead of threads ?
thanks :p