5가지 개념적 복습내용들 - process, thread 등

Anthony Rhim·2022년 10월 9일
0

ComputerScience

목록 보기
1/1

1. process와 thread의 차이

process: the instance of a computer program that is being executed by one or many threads.
(ELI5) process: it's the "setup" for some program that is running.
(ELI5) process: a process contains 1 or more threads.

(ELI5) thread: a thread, or thread of execution, is a multi-tasking term for a thing that runs on the CPU.

https://www.reddit.com/r/explainlikeimfive/comments/k1ig1e/eli5_the_difference_between_a_process_and_a_thread/

2. private, protected, public의 차이, 그리고 장단점

cf. all in java
private: hides from other classes within the package.
public: exposes to classes outside the package.
protected: is a version of public restricted only to subclasses.

https://stackoverflow.com/questions/215497/what-is-the-difference-between-public-protected-package-private-and-private-in/

3. TCP와 UDP에 대한 차이

TCP: Transmission Control Protocol - a connection-oriented protocol.
UDP: User Diagram Protocol - there is no overhead for opening a connection, maintaining a connection, and terminating a connection.

https://www.geeksforgeeks.org/differences-between-tcp-and-udp/

4. Virtual Memory 가상메모리 왜 쓰는지?

(ELI5) vitual memory: means copying lesser used RAM contents to the hard drive to free up space when RAM runs out. This memory is then moved back and forth as required until enough RAM is freed up to the point where swapping isn't needed anymore.
(ELI5) virtual memory: an OS feature that makes it easier to write programs that need to request memory on the fly, while preventing malicious programs from reading sensitive data and buggy programs from writing to random places they shouldn't and crashing the entire machine.
is it same as virtual machine?

https://www.reddit.com/r/explainlikeimfive/comments/vac8pj/eli5_what_is_virtual_memory_and_why_would_i_want/
https://www.reddit.com/r/explainlikeimfive/comments/qacvpv/eli5_what_is_virtual_memory_and_how_does_it_work/

5. Array와 list의 차이와 장단점

(ELI5) array: an array is simply a block of data. Usually fixed size (can't resize it without creating a new array and copying the items to it), with N elements stored sequentially in memory, numbered from 0 to N-1.
(ELI5) list: any sequential collection of items. You can add items to a list, remove items, sometimes even move items around.

https://www.reddit.com/r/explainlikeimfive/comments/bbkij9/eli5_the_difference_between_array_vs_list/

profile
For engineering purposes.

0개의 댓글