P
Pokkai Dokkai
how to allocate particular amount of memory to a ruby thread or to a
ruby script?
for example suppose if i want to start a thread it should take 1 MB
memory only
Thread.start(memory=1024*1024*1024) do |t|
# some stuff here
end
is there anyway to do like this ?
ruby script?
for example suppose if i want to start a thread it should take 1 MB
memory only
Thread.start(memory=1024*1024*1024) do |t|
# some stuff here
end
is there anyway to do like this ?