Autosave: 2024-06-26 06:00:04

This commit is contained in:
thomasabishop 2024-06-26 06:00:04 +01:00
parent 6aaa42e218
commit bbb48c995d
5 changed files with 30 additions and 7 deletions

Binary file not shown.

View file

@ -1,13 +1,13 @@
--- ---
tags: [] tags: [memory, javascript]
--- ---
# The call-stack # The call-stack
A [stack](Stacks.md) data structure that holds the information A [stack](Stacks.md) data structure that holds the information of the functions
of the functions called within a program that allows transfer of the application called within a program that allows transfer of the application control from
control from these functions to the main process after code inside the functions these functions to the main process after code inside the functions has been
has been executed. executed.
## Example ## Example
@ -31,3 +31,7 @@ console.log("Bye");
function: the `console.log("bye")` function: the `console.log("bye")`
6. Executes 6. Executes
7. Returns to line that called it. Finds nothing else to do. Exits program. 7. Returns to line that called it. Finds nothing else to do. Exits program.
## Related notes
![Stack memory](Stack_memory.md)

View file

@ -5,7 +5,7 @@ tags: [operating-systems]
created: Friday, June 21, 2024 created: Friday, June 21, 2024
--- ---
# Processes and threads # Processes
Programs are sequences of machine instructions stored in a file. However they do 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 not work by themselves. Something needs to load the file's intructions into

View file

@ -11,7 +11,7 @@ created: Tuesday, April 16, 2024
- Along with [[Heap_memory|heap memory]] heap memory, programs make use of - Along with [[Heap_memory|heap memory]] heap memory, programs make use of
_stack memory_ during runtime. _stack memory_ during runtime.
- [ ]
- Best suited for small-sized singular values that are temporary/ephemeral - 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 rather than large or complex data types that need to persist for a longer
time. time.

19
zk/Threads.md Normal file
View 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
![Processes](Processes.md)