N Flashcards

1
Q

Race condition

A

خيطين او اكثر يحاولون يعدلون بيانات معينه بنفس الوقت بدون جدولة زمنية يؤدي الى نتايج غير متوقعه وحدوث اخطاء

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Critical section

A

منطقة من البرنامج تمنع اي تدخل اخر بنفس الوقت تفاديا لوقوع race condition او نتايج غير متوقعه

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Mutual exclusion

A

ميكانيزم تؤكد حدوث او وصول ثريد واحد لاداء فعل معين بوقت معين بترتيب

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can a semaphore go below zero

A

No if a thread is executed when S is at 0 am he thread is blocked
It can run again if V(S) happens

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Deadlock

A

A situation when two or more processes wait in an infinite loop for an even that will not happen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Register that controls different modes of operation in cpu

A

PSW (program status word)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Machine code running while CPU is in____can only use limited instructions (no IN or OUT instructions)

A

User mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Only code running in ______ can use privilged instructions like IN and OUT

A

Kernel mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Instructions restricted in kernel mode

A

Instructions to change machine status mode
Instructions that perform I/O operations (IN,OUT)
Instructions that define interrupt handler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

RISC Instructions are the sane length

A

MIPS are all 4 bytes long
Pentium may be 1,2,3 or more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

RISC processor has a large number of general purpose registers

A

MIPS has 32 registers
Pentium has about 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

RISC arithmetic instructions operate on register values

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

ALU

A

Arithmetic Logic Unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

PC

A

Program Counter
Special purpose register that points instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

MIPS instruction

A

add=add instruction
Accessing memory = load word(lw)
Branching = branch on equal (beq)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ARM

A

advanced RISC machine

17
Q

MIPS

A

Microprocessor without interlocked pipeline

18
Q

RISC

A

Reduced instruction set computers
تعليمات اقل = اكثر بساطة

19
Q

CISC

A

Complex instructions set computers
C stands for complex = اكثر تعقيد

20
Q

ISA

A

Instruction set architecture

21
Q

MIPS INSTRUCTION

A

Funct = function code
Shamt = shift amount
rd = register gets result
rs = first register
rt = second register
op = basic operation

22
Q

Process stages

A

المربع الازرق = جلب التعليمات fetching instructions
الهرم الازرق = تطبيق الامر execution
المربع البرتقالي = بيانات memory
الاخضر قسمين
اليمين يقرا = اليسار يكتب

23
Q

ILP

A

Instruction level parallelism