Autosave: 2024-06-26 06:00:04
This commit is contained in:
parent
6aaa42e218
commit
bbb48c995d
5 changed files with 30 additions and 7 deletions
BIN
.zk/notebook.db
BIN
.zk/notebook.db
Binary file not shown.
|
@ -1,13 +1,13 @@
|
|||
---
|
||||
tags: []
|
||||
tags: [memory, javascript]
|
||||
---
|
||||
|
||||
# The call-stack
|
||||
|
||||
A [stack](Stacks.md) data structure that holds the information
|
||||
of the functions called within a program that allows transfer of the application
|
||||
control from these functions to the main process after code inside the functions
|
||||
has been executed.
|
||||
A [stack](Stacks.md) data structure that holds the information of the functions
|
||||
called within a program that allows transfer of the application control from
|
||||
these functions to the main process after code inside the functions has been
|
||||
executed.
|
||||
|
||||
## Example
|
||||
|
||||
|
@ -31,3 +31,7 @@ console.log("Bye");
|
|||
function: the `console.log("bye")`
|
||||
6. Executes
|
||||
7. Returns to line that called it. Finds nothing else to do. Exits program.
|
||||
|
||||
## Related notes
|
||||
|
||||

|
||||
|
|
|
@ -5,7 +5,7 @@ tags: [operating-systems]
|
|||
created: Friday, June 21, 2024
|
||||
---
|
||||
|
||||
# Processes and threads
|
||||
# Processes
|
||||
|
||||
Programs are sequences of machine instructions stored in a file. However they do
|
||||
not work by themselves. Something needs to load the file's intructions into
|
||||
|
|
|
@ -11,7 +11,7 @@ created: Tuesday, April 16, 2024
|
|||
|
||||
- Along with [[Heap_memory|heap memory]] heap memory, programs make use of
|
||||
_stack memory_ during runtime.
|
||||
- [ ]
|
||||
|
||||
- Best suited for small-sized singular values that are temporary/ephemeral
|
||||
rather than large or complex data types that need to persist for a longer
|
||||
time.
|
||||
|
|
19
zk/Threads.md
Normal file
19
zk/Threads.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
id: zadl
|
||||
title: Threads
|
||||
tags: []
|
||||
created: Wednesday, June 26, 2024
|
||||
---
|
||||
|
||||
# Threads
|
||||
|
||||
A process is a running instance of a given program. A program runs sequentially
|
||||
handling one task at a time, however we may need to run certain tasks in
|
||||
parallel.
|
||||
|
||||
For example think of a program that is downloading a resource from the internet
|
||||
and wants to update the UI at the same time to show the download process.
|
||||
|
||||
## Related notes
|
||||
|
||||

|
Loading…
Add table
Reference in a new issue