Answer: C) spin-lock with test and set
Explanation:
In spinlock, when a thread locks a spinlock then it continuously retrying locking until it succeeds. Spinlock is the lock that cause thread and continuously check that whether the lock are available or not for synchronization.
So that is why spinlock is best synchronization solution as it is not allowing any another thread.
On the other hand, in mutex thread try to lock a mutex and then, it automatically go to sleep mode before locking and immediate allow another thread to run.
Answer:
true
Explanation:
The command:
find -empty -type f -exec rm { } \;
carries out the following steps.
1) Finds all the empty files in the current directory and its subdirectories.
2) For each of the identified files, it executes the command specified as the parameter to exec option,namely, rm <filename>.
So effectively it removes all empty files in the directory tree starting at the current directory.
Answer:
1.ClassName and . operator
2. ClassName and [] operator
Explanation:
There are two ways to get the members of a class first one is by using dot(.) operator.
Example : with assumption that person is a class object and age is the member in it we can use it as:
person.age
Second way is to use [] operator with member as a string in it which is used by the compiler as key to get its value.
Example : person["age"]
Answer: These are mostly used in interior design, fashion design, and advertising. they are often used to generate ideas for a client to meet their approval before making the final product. It can help in terms of planning because it could be used to create a design or a theme.
Explanation: yw
Answer:
1946
First, to deal with the more recent and most familiar meaning of the word ‘computer’: the word first came to mean an electronic device used to store and communicate information (and all of its subsequent functions) only in the 1940s: the earliest citation in the Oxford English Dictionary is from 1946. This is fitting.
Explanation: