What is Thread Cancellation

Arnab Chakraborty
Updated on 31-Jan-2020 11:07:24

6K+ Views

Terminating a thread before it has completed is called Thread cancellation. For an example, if multiple threads are concurrently searching through a database and one thread returns the result, the remaining threads might be canceled. Another situation might be occurred when a user presses a button on a web browser that stops a web page from loading any further. Often, using several threads a web page loads — each image is loaded in a separate thread. When the stop button is pressed by a user on the browser, all threads loading the page are canceled. A thread which is to ... Read More

What is User-Defined Signal Handler

Arnab Chakraborty
Updated on 31-Jan-2020 11:05:12

1K+ Views

Signals are software interrupts which sent to a program to indicate that an important event has occurred. A Signal may be handled by following one of two possible handlers:A default signal handlerA user-defined signal handlerUser-defined signal handler can override this default action that is called to handle the signal. Signals are handled in different ways. Some signals (such as changing the size of a window) are simply ignored; others (such as an illegal memory access) are handled by terminating the program.A signal handler function may have any name, but must have return type void and have one int parameter.Example − ... Read More

Create a Process in Linux

Arnab Chakraborty
Updated on 31-Jan-2020 10:54:58

14K+ Views

A program loaded into memory and executing is called a process. In simple, a process is a program in execution.Let’s inspect how to create a process in LinuxA new process can be created by the fork() system call. The new process consists of a copy of the address space of the original process. fork() creates new process from existing process. Existing process is called the parent process and the process is created newly is called child process. The function is called from parent process. Both the parent and the child processes continue execution at the instruction after the fork(), the ... Read More

Usage of Border-Bottom Style Property in CSS

Arjun Thakur
Updated on 31-Jan-2020 10:48:48

154 Views

The border-bottom-style property changes the style of bottom border. You can try to run the following code to implement the border-bottom-style property:Example                            This is demo content          

What is Amdahl's Law

Arnab Chakraborty
Updated on 31-Jan-2020 10:48:44

8K+ Views

Amdahl’s LawSuppose, Moni have to attend an invitation. Moni’s another two friend Diya and Hena are also invited. There are conditions that all three friends have to go there separately and all of them have to be present at door to get into the hall. Now Moni is coming by car, Diya by bus and Hena is coming by foot. Now, how fast Moni and Diya can reach there it doesn’t matter, they have to wait for Hena. So to speed up the overall process, we need to concentrate on the performance of Hena other than Moni or Diya.This is ... Read More

Set Color, Style, and Width of Lines in a Single Property with CSS

karthikeya Boyini
Updated on 31-Jan-2020 10:48:00

136 Views

The border property allows you to specify color, style, and width of lines in one property.ExampleYou can try to run the following code to specify border property:                            This example is showing shorthand property for border.          

Set the Width of an Image with CSS

Lakshmi Srinivas
Updated on 31-Jan-2020 10:46:55

122 Views

The width property is used to set the width of an image. This property can have a value in length or in %. While giving value in %, it applies it in respect of the box in which an image is available.ExampleYou can try to run the following code to set the width of an image:                                  

Set Dotted Line for Border with CSS

George John
Updated on 31-Jan-2020 10:46:18

431 Views

To set dotted line for border, use the border-style property. You can try to run the following code to implement border-style property value dotted to set dotted border:Example                            This is a dotted border.          

Usage of Border Top Style Property in CSS

Samual Sam
Updated on 31-Jan-2020 10:45:43

132 Views

The border-top-style property changes the style of top border. You can try to run the following code to implement the border-top-style property:Example                            This is demo content          

Usage of Border Style Property in CSS

karthikeya Boyini
Updated on 31-Jan-2020 10:45:10

75 Views

Use the border-style property to set the style of the border:Example            .                This is a border with none width.                      This is a solid border.    

Advertisements