Set Dashed Line for Border with CSS

George John
Updated on 31-Jan-2020 10:20:44

722 Views

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

Starvation and Deadlock

Kristi Castro
Updated on 31-Jan-2020 10:20:36

7K+ Views

Starvation and Deadlock are situations that occur when the processes that require a resource are delayed for a long time. However they are quite different concepts.Details about starvation and deadlock are given as follows −StarvationStarvation occurs if a process is indefinitely postponed. This may happen if the process requires a resource for execution that it is never alloted or if the process is never provided the processor for some reason.Some of the common causes of starvation are as follows −If a process is never provided the resources it requires for execution because of faulty resource allocation decisions, then starvation can ... Read More

Set Dotted Line Border with CSS

Samual Sam
Updated on 31-Jan-2020 10:20:12

2K+ Views

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

Usage of border-right-color Property in CSS

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

60 Views

The border-right-color property changes the color of the right border.ExampleYou can try to run the following code to implement the border-right-color property:                    p.demo {             border:3px solid;             border-right-color:#FF0000;          }                              India is a country.          

Usage of Border Top Color Property in CSS

Arjun Thakur
Updated on 31-Jan-2020 10:18:27

71 Views

The border-top-color property changes the color of the top border.ExampleYou can try to run the following code to implement the border-top-color property:                    p.demo {             border:3px solid;             border-top-color:#FF0000;          }                              Asia is a continent.          

The Threading Module in Python

Mohd Mohtashim
Updated on 31-Jan-2020 10:18:04

11K+ Views

The newer threading module included with Python 2.4 provides much more powerful, high-level support for threads than the thread module discussed in the previous section.The threading module exposes all the methods of the thread module and provides some additional methods −threading.activeCount() − Returns the number of thread objects that are active.threading.currentThread() − Returns the number of thread objects in the caller's thread control.threading.enumerate() − Returns a list of all thread objects that are currently active.In addition to the methods, the threading module has the Thread class that implements threading. The methods provided by the Thread class are as follows −run()  − The run() method is the entry point ... Read More

Change the Style of Left Border with CSS

Chandu yadav
Updated on 31-Jan-2020 10:17:47

134 Views

The border-left-style property changes the style of left border. You can try to run the following code to implement border-left-style property:Example                            Example showing left border          

Message Passing Model of Process Communication

Kristi Castro
Updated on 31-Jan-2020 10:14:25

13K+ Views

Process communication is the mechanism provided by the operating system that allows processes to communicate with each other. This communication could involve a process letting another process know that some event has occurred or transferring of data from one process to another. One of the models of process communication is the message passing model.Message passing model allows multiple processes to read and write data to the message queue without being connected to each other. Messages are stored on the queue until their recipient retrieves them. Message queues are quite useful for interprocess communication and are used by most operating systems.A ... Read More

Send Email with Attachments Using Python

Mohd Mohtashim
Updated on 31-Jan-2020 10:09:56

736 Views

To send an e-mail with mixed content requires to set Content-type header to multipart/mixed. Then, text and attachment sections can be specified within boundaries.A boundary is started with two hyphens followed by a unique number, which cannot appear in the message part of the e-mail. A final boundary denoting the e-mail's final section must also end with two hyphens.Attached files should be encoded with the pack("m") function to have base64 encoding before transmission.ExampleFollowing is the example, which sends a file /tmp/test.txt as an attachment. Try it once −#!/usr/bin/python import smtplib import base64 filename = "/tmp/test.txt" # Read a file and ... Read More

Usage of Border Color Property in CSS

Lakshmi Srinivas
Updated on 31-Jan-2020 10:09:23

133 Views

The border-color property specifies the color of a border. You can try to run the following code to implement the border-color property:Example                    p.demo {             border:2px dashed;             border-color:#800000;          }                              Example showing border color property          

Advertisements