This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env tclsh | |
set chunk 64 | |
set i 0 | |
while {1} { | |
set [incr i] [string repeat a [expr {$chunk*1024}]] | |
puts "Allocated [expr {$i*$chunk}]K" ; flush stdout | |
after 50 | |
} |