1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vlabodo [156]
4 years ago
7

Say you are running a program along with many other programs in a modern computer. For some reason, your program runs into a dea

dlock and never comes out of that. How does the OS deal with such deadlock
Computers and Technology
1 answer:
swat324 years ago
6 0

Answer:

The OS deals with such deadlock to temporarily prevent resources from deadlocked processes. It is either it back off a process to some check point allowing preemption of a needed resource and restarting the process at the checkpoint later. Finally, successively kill processes until the system is deadlock free.

You might be interested in
The ability to anticipate and determine upcoming driving hazards and conditions are adversely affected by stress.
dybincka [34]
It can be stress or drinking, drugs, or anything of the sort.
6 0
4 years ago
Related to Image Classification
loris [4]
<h3>Answers:</h3>

(1) Train the classifier.

(2) True

(3) Image Pre-processing

(4) Weakly Supervised Learning Algorithm

(5) SIFT (or SURF)

(6) True

(7) True

(8) True

(9) True

(10) Decision Tree Classifier

(11) Softmax


<h3>Explanations:</h3>

(1) In supervised learning, we have given labels (y) and we have input examples (X) which we need to classify. In Keras or in Scikit-learn, we have a function fit(X, y), which is used to train the classifier. In other words, you have to train the classifier by using the incoming inputs (X) and the labelled outputs (y). Hence, the correct answer is: The fit(X,y) is used to <em>train the classifier</em><em>. </em>

(2) This statement is primarily talking about the PCA, which stands for "Principal Component Analysis." It is a technique or method used to compress the given data, which is huge, into compact representation, which represents the original data. That representation is the collection of PCs, which are Principal components. PC1 represents the axis that covers the most variation in the data. PC2 represents the axis that covers the variation less than that of in PC1. Likewise, PC3 represents the axis that covers the variation less than that of in PC2, and so on. Therefore, it's <em>true</em> that the variation present in the PCs decrease as we move from the 1st PC to the last one.

(3) Image pre-processing is the phenomenon (or you can say the set of operation) used to improve and enhance the image by targeting the distortions within the image. That distortions are calculated using the neighbouring pixels of the given pixel in an image. Hence, the correct answer is <em>Image pre-processing</em>.

(4) SVM stands for State Vector Machine. It is basically a classifier, which is used to classify different (given) classes with precision. In simple terms, you can say that it is an algorithm, which is partially based on the given labeled data to predict the inputs. In technical terms, we call it weakly supervised learning algorithm. Hence, the correct answer is: <em>Weakly supervised learning algorithm.</em>

(5) There are many algorithms out there to detect the matching regions within two images. SURF (Scale Invariant Feature Transform) and SIFT (Speeded up Robust Feature) are two algorithms that can be used for matching patterns in the given images. Hence, you can choose any one of the two: SURF and SIFT.

(6) Indeed. Higher the accuracy is, better the classifier will be. However, there is a problem of <em>overfitting</em> that occurs when the accuracy of the classifier is way too high. Nevertheless, mostly, the classifier is better when there is higher accuracy. Hence, the correct answer to your question is <em>true</em>.

(7) True. Gradient descent is the process used to tune the parameters of the given neural network in order to decrease the error and increase the accuracy of the classifier. It calculates and fine-tune the parameters from the output to input direction by taking the gradient of the error function (sometimes called the loss function), which is the technique called backpropagation. Hence the correct answer is true.

(8) True. As explained in the part (5), SIFT which is called  scale-invariant feature transform, is an algorithm used to detech the features or the matching regions within given images. Hence, it's true that scale-invariant feature transform can be used to detect and describe local features in images.

(9) True. Clustering is indeed a supervised classification. In clusterning, we use graphs, which contains different data points in the form of clusters, to visualize the data as well. Imagine we have 7 fruits, out of which we know 6 of them, and we have to predict the 7th one. Let's say, 3 are apples and 3 are oranges. The set of apples is one cluster, and the set of oranges is another cluster. Now if we predict the 7th one by using the clustering technique, under the hood, that technique/algorithm will first train the model using the 6 fruits, which are known and then predict the 7th fruit. This kind of technique is a supervised learning, and hence, we can say that clustering is a supervised classification.

(10) In machine learning, Decision Tree Classifier is used to predict the value of the given input based on various known input variables. In this classifier, we can use both numeric and categorical values to get the results. Hence, the correct answer is <em>Decision Tree Classifier.</em>

(11) <em>Softmax </em>is the function which is used to convert the K-dimensional vector into the same shaped vector. The values of the Softmax function lies between 0 and 1, and it is primarily used as an activation function in a classification problems in neural networks (or deep neural networks). Hence, the correct answer is Softmax.

6 0
3 years ago
In Python, when do we use the str( ) function
pav-90 [236]

Answer:

Both str () and repr () methods in python are used for string representation of a string.

Explanation:

Though they both seem to serve the same purpose, there is a little difference between them. Have you ever noticed what happens when you call a python built-in function str (x) where x is any object you want?

7 0
2 years ago
When broadcasting live on social, keep in mind that the best broadcasts are ones that feel like a conversation between brand and
tiny-mole [99]

Answer:

Is longer and repeats key points.

Explanation:

When you start a live broadcast, viewers are received every second, and those who join the broadcast long after it starts may have no idea what you're talking about if you don't repeat the key points every so often.

The duration of the broadcast is also important, the longer it lasts, the more likely it is to receive more viewers and you can include more content to keep them entertained.

8 0
4 years ago
For an activity with more than one immediate predecessor activity, which of the following is used to compute its earliest finish
laila [671]

Answer:

The correct option is A

Explanation:

In project management, earliest finish time for activity A refers to the earliest start time for succeeding activities such as B and C to start.

Assume that activities A and B comes before C, the earliest finish time for C can be arrived at by computing the earliest start-finish (critical path) of the activity with the largest EF.

That is, if two activities (A and B) come before activity C, one can estimate how long it's going to take to complete activity C if ones knows how long activity B will take (being the activity with the largest earliest finish time).

Cheers!

7 0
3 years ago
Other questions:
  • 7.12 LAB: Contains the character
    12·2 answers
  • 9) If you are working on the part of 5-15 minutes, time-stamping (every 30 seconds) should start at: a) [00:05:00] b) [00:00:00]
    9·1 answer
  • Should software companies be able to send automatic updates to your computer withoput your knowledge
    14·1 answer
  • Create a class called Toddler that inherits from a class called Parent. (Note that Parent has already been defined elsewhere, so
    8·2 answers
  • Let's say that you want to create a new Integer array with a size of 56. Pick the array that would accomplish this:
    14·1 answer
  • The Many–Hands Problem makes it difficult to determine who should be held accountable for mistakes since:
    7·1 answer
  • NEED ANSWERS ASAP
    6·2 answers
  • What is bit in computer science? (You must select all correct answers.) Hb. A. A part of a tool, such as a router. Non. B. A bas
    6·2 answers
  • Whats worth more in adopt me- A Mega Owl or a Mega Frost Dragon?
    8·2 answers
  • I don't want my large video files using up all my hard drive space . can i archive my videos in on dvds or blu rays?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!