viprajput

GRADE 2 SESSION 3

Jun 24th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.15 KB | None | 0 0
  1. Grade 2 Session 3
  2. ==================
  3.  
  4. Windows Memory Management
  5. -------------------------
  6. Memory - Storage : where we can store anything, any kind of data
  7. Data - It can be anything - Text, Document, Pic, Music, Video
  8. Management - Allocating memory - Which process will comsume what amount of memory, at what time what sort of memory will be used.
  9.  
  10. Memory Management - How to allocate the memory to the process, how to allocate memory to the application. How to store the data in the hard disk drive.
  11.  
  12. How to optimize your hard disk?
  13. -------------------------------
  14. temp ---> delete
  15. Background processes
  16. disk cleanup --> Defragmentation
  17. %temp%
  18. prefetch --> boot temporary files
  19.  
  20. When i start my OS, what are the things which runs in the sequence
  21. BIOS --> Basic Input/Output System
  22. GRUB
  23. Windows Fetch
  24. OS Loader
  25.  
  26. There are two types of memory
  27. =============================
  28. 1. Primary Memory
  29. 2. Secondary Memory
  30.  
  31. 1. Primary Memory
  32. =================
  33. In which data wipes out, when ever you start the OS. It is also known as temporary memory.
  34. Ex ---> RAM --> Random Access Memory
  35.  
  36. 2. Secondary Memory
  37. ===================
  38. In which we can permanently store the data, When ever we store data in this type of memory, it will remain there, until the user deletes it manually.
  39. Ex --> Hard Disk Drive, Pen drive, CD, DVD
  40.  
  41. CD --> compact Disk --> 712 MB
  42. DVD --> Digital Versatile Disk --> 4.7 GB
  43.  
  44. Virtualization
  45. ==============
  46. Sharing the resources of one device for better and more processes.
  47. VMWare, Virtual Machine, Virtual Box
  48.  
  49. 1. Type 0 --> Bare Bone --> In the hard disk, you directly install the virtualization software and then you install virtual OS.
  50.  
  51.  
  52. 2. Type 1 --> In the Hard Disk, you install the OS and in that OS, you install the Virtualization software and on that you install virtual OS.
  53.  
  54. Virtual Memory
  55. ==============
  56. It is the space which is not actual the physical space but a virtual space. when the space in the RAM get low, then It borrows some memory form the HDD, for continuing the processes.
  57.  
  58. Virtual Table
  59. =============
  60. They are like my content page, index page in the book. They tell me at which location my process is located and will help the RAM to access the process.
  61.  
  62. Virtual Page
  63. ============
  64. Contains the collection of virtual table, in which all the processes are mapped.
  65.  
  66. Dymanic Memory Allocation
  67. =========================
  68. Malloc()
  69. calloc()
  70. realloc()
  71. free()
  72.  
  73. Malloc --> Memory allocation
  74. To allocate the memory in any manner, it is not continuous memory allocation. It used pointer.
  75. calloc --> Contigious Memory Allocation
  76. It allocated the continuous block of the memory.
  77. It uses the pointer for allocating the memory.
  78.  
  79. realloc --> If, while performing the process, the memory runs out, then I am here to assist you with more memory by again allocating it to the process.
  80.  
  81. Free ---> to make the memory vacant which is consumed by the background processes.
  82.  
  83. https://www.tutorialspoint.com/cprogramming/c_memory_management.htm
  84.  
  85. ---------------------------------------------------------
  86.  
  87. How Data is stored in CD|DVD
  88. CD is divided into tracks and sectors.
  89.  
  90. How Does Cyber Forensic Works
  91. =============================
  92. 1. They never operate on the original source.
  93. 2. I will make atleast 15 copies|clones of the reterived source.
  94. 3. I will maintain a journal, for each and everything we collected, with location and the time.
  95. 4. I will always take the source to the isolated place, for forensics.
  96.  
  97. Data Recovery
  98. =============
  99. = Recuva --> Recovery Application software
  100. https://recuva.en.softonic.com/download --> download link
  101. = Active Undelete
  102.  
  103.  
  104. Data Forensics
  105. ==============
  106. We can recover almost any sort of data from the digital media.
  107. CD
  108. DVD
  109. Pen drive
  110. HDD
  111. Computer
  112.  
  113. Number System In Computers
  114. ==========================
  115. 1. Binary
  116. 2. Decimal
  117. 3. Octal
  118. 4. Hexa Decimal
  119.  
  120. Decimal Binary Octal HexaDecimal
  121. -----------------------------------------------------------
  122. 0-9 0 and 1 0-7 0-9|A-F
  123. 10 Digits 2 digits 8 digits 16 digits
  124. Base 10 base 2 base 8 base 16
  125. ------------------------------------------------------------
  126. 0 0 0 0
  127. 1 1 1 1
  128. 2 10 2 2
  129. 3 11 3 3
  130. 4 100 4 4
  131. 5 101 5 5
  132. 6 110 6 6
  133. 7 111 7 7
  134. 8 1000 10 8
  135. 9 1001 11 9
  136. 10 1010 12 A --> 10
  137. 11 1011 13 B --> 11
  138. 12 1100 14 C --> 12
  139. 13 1101 15 D --> 13
  140. 14 1110 16 E --> 14
  141. 15 1111 17 F --> 15
  142.  
  143.  
  144.  
  145.  
  146.  
  147. Computer Programming Language
  148. =============================
  149. 1. High Level Language
  150. 2. Low Level Language
  151. 3. Mid Level Language
  152.  
  153. 1. High Level Language
  154. ======================
  155. Are written and understood by the humans. These type of Programming Language uses english and mathematical expression. That's why it is understandable to humans.
  156. c, c++, java, python, ruby
  157.  
  158. 2. Low Level Language
  159. =====================
  160. It is a language which is only and only understandabel to machine or computers. It contains 0 and 1 --> Binary Language
  161. 222 ---> 101010
  162.  
  163. 3. Mid Level Language
  164. =====================
  165. Are the languages which converts high level language to a low level Language.
  166. They use registers, hex values as the location.
  167. We can retriev mid level language from low level language.
  168. Ex --> Assembly Language
  169.  
  170. High ----> Mid Level Language ---> Low Level Language
  171. C programming example
  172. .c --> .o --> exe
  173.  
  174. Assembely Language
  175. ==================
  176. It uses registers and the memory location in hexa decimal for storing the content of other programming language.
  177.  
  178. 8085 processor
  179.  
  180. Registers
  181. =========
  182. 1. General Purpose Registers
  183. 2. Special Purpose Registers
  184. 3. Segment Registers
  185.  
  186. 1. General Purpose Registers
  187. ============================
  188. Are used to store any transient data. ---> Temporary data.
  189. Registers which are required by the program
  190. AX
  191. BX
  192. CX
  193. DX
  194. They are the combination of two 8 bit registers
  195. Low Byte
  196. High Byte
  197. AX ---> AL AH
  198. 16 bit --> 8 bit 8 bit
  199. AX = 1234
  200. AL --> 34
  201. AH --> 12
  202. Low Byte | High Byte
  203. ====================
  204. AL AH
  205. BL BH
  206. CL CH
  207. DL DH
  208.  
  209.  
  210. Extended form of the Register
  211. -----------------------------
  212. EAX
  213. EBX
  214. ECX
  215. EDX
  216.  
  217. EAX ---> 32 bit register
  218. ---> EAL ---> 16
  219. ---> EAH ---> 16
  220.  
  221. 2. Special Purpose Register
  222. ===========================
  223. Data Structure
  224. Array
  225. Union
  226. Structure
  227. Heap
  228. Stack
  229.  
  230. They store the data in the form of a stack.
  231. 1. SP --> Stack Pointer ---> It points at the top of the stack.
  232. 2. BP --> Base Pointer ---> It points at the base of the stack.
  233. 3. IP --> Instruction Pointer --> It points at the next instruction.
  234. 4. SI --> Source Index Pointer
  235. 5. DI --> Destination Index Pointer
  236.  
  237. 3. Segment Registers
  238. ====================
  239. CS --> Code Segment
  240. DS --> Data Segment
  241. ES --> Extra Segment
  242. SS --> Stack Segment
  243.  
  244. General Registers for 8085 Processor
  245. ====================================
  246. 1. Accumulator --> A
  247. 2. Base Register --> B
  248. 3. Couter Register --> C
  249. 4. Data Register --> D
  250. 5. Extended Register --> E
  251. 6. High ---> H
  252. 7. Low ----> L
Add Comment
Please, Sign In to add comment