N Flashcards
Race condition
خيطين او اكثر يحاولون يعدلون بيانات معينه بنفس الوقت بدون جدولة زمنية يؤدي الى نتايج غير متوقعه وحدوث اخطاء
Critical section
منطقة من البرنامج تمنع اي تدخل اخر بنفس الوقت تفاديا لوقوع race condition او نتايج غير متوقعه
Mutual exclusion
ميكانيزم تؤكد حدوث او وصول ثريد واحد لاداء فعل معين بوقت معين بترتيب
Can a semaphore go below zero
No if a thread is executed when S is at 0 am he thread is blocked
It can run again if V(S) happens
Deadlock
A situation when two or more processes wait in an infinite loop for an even that will not happen
Register that controls different modes of operation in cpu
PSW (program status word)
Machine code running while CPU is in____can only use limited instructions (no IN or OUT instructions)
User mode
Only code running in ______ can use privilged instructions like IN and OUT
Kernel mode
Instructions restricted in kernel mode
Instructions to change machine status mode
Instructions that perform I/O operations (IN,OUT)
Instructions that define interrupt handler
RISC Instructions are the sane length
MIPS are all 4 bytes long
Pentium may be 1,2,3 or more
RISC processor has a large number of general purpose registers
MIPS has 32 registers
Pentium has about 4
RISC arithmetic instructions operate on register values
MIPS arithmetic take two registers as operands and put results in another register
In pentium add instructions operands or results can be registers or memory
ALU
Arithmetic Logic Unit
PC
Program Counter
Special purpose register that points instructions
MIPS instruction
add=add instruction
Accessing memory = load word(lw)
Branching = branch on equal (beq)
ARM
advanced RISC machine
MIPS
Microprocessor without interlocked pipeline
RISC
Reduced instruction set computers
تعليمات اقل = اكثر بساطة
CISC
Complex instructions set computers
C stands for complex = اكثر تعقيد
ISA
Instruction set architecture
MIPS INSTRUCTION
Funct = function code
Shamt = shift amount
rd = register gets result
rs = first register
rt = second register
op = basic operation
Process stages
المربع الازرق = جلب التعليمات fetching instructions
الهرم الازرق = تطبيق الامر execution
المربع البرتقالي = بيانات memory
الاخضر قسمين
اليمين يقرا = اليسار يكتب
ILP
Instruction level parallelism