Node Process & Node process.argv Flashcards

1
Q

What is a computer process?

A

Is theinstanceof acomputer programthat is being executed by one or many threads.

In computer science, a thread of execution is the smallest sequence of programmed instructions that can be managed independently by a scheduler, which is typically a part of the operating system.

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

Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?

A

Roughly 450 processes…

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

Why should a full stack Web developer know that computer processes exist?

A

A full stack Web developers make an application where multiple processes work together

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

What is theprocessobject in a Node.js program?

A

Theprocessobject is aglobalthat provides information about, and control over, the current Node.js process.

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

How do you access theprocessobject in a Node.js program?

A

Just reference it. As a global, it is always available to Node.js applications without usingrequire().

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

What is the data type ofprocess.argvin Node.js?

A

An array of Strings

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

What is the alias of “process.stdout.write(‘’)”

A

console.log(‘’)

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