Skip to content

Commit 6737d61

Browse files
committed
addign 27th Q
1 parent 61dd8ca commit 6737d61

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,12 @@
16751675

16761676
**[ Back to Top ⬆ ](#table-of-contents---golang)**
16771677

1678+
1679+
27. ### Why are goroutines light-weight?
1680+
A goroutine is created with initial only 2KB of stack size. Each function in go already has a check if more stack is needed or not and the stack can be copied to another region in memory with twice the original size. This makes goroutine very light
1681+
1682+
**[ Back to Top ⬆ ](#table-of-contents---golang)**
1683+
16781684
### Table of Contents - Database Engineering
16791685

16801686

sentence_to_hashing_converter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ function hashing(num=0,str) {
2020
return `| ${num} | [${str}?](#${hashed})`
2121
}
2222

23-
console.log(hashing(26,'How to generate a true random number in golang'));
23+
console.log(hashing(27,'Why are goroutines light-weight'));

0 commit comments

Comments
 (0)