General Engineering Flashcards

1
Q

Fork

A

Fork = copy of a process (called a child process). Heavyweight meaning does not share resources

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

Thread

A

partial copy of a process, lightweight, resources can be shared between threads. Peer relationship

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

Process

A

instance of a computer program executed by one to many threads

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

‘this’ in c# function

A

used for extensions. allows you pass in the instance of a class that’s calling the function by just using instance.function instead of function(instance). Like if you wanted to add a new method to the string class

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

c# - What does ‘void’ mean below?

public void SampleMethod()
{
    // Body of the method.
}
A

function has no return value

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