Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
7
Task/Memory-allocation/Nim/memory-allocation.nim
Normal file
7
Task/Memory-allocation/Nim/memory-allocation.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Allocate thread local heap memory
|
||||
var a = alloc(1000)
|
||||
dealloc(a)
|
||||
|
||||
# Allocate memory block on shared heap
|
||||
var b = allocShared(1000)
|
||||
deallocShared(b)
|
||||
Loading…
Add table
Add a link
Reference in a new issue