Beruflich Dokumente
Kultur Dokumente
A thread is the basic unit to which the operating system allocates processor time.
A thread can execute any part of the process code.
The typical difference is that threads (of the same process) run in a shared memory
space, while processes run in separate memory spaces.
Examples:
1. If you start Ms Word, it is a process. In Ms Word, you type some thing and it
gets automatically saved. Now, you would have observed editing and saving
happens in parallel. These are threads.
2. If you start Paint, it is a process. In Paint it draw pictures by reading mouse
movement. The program must give its full attention to the mouse input and
draw at the same time. To do this two or more threads of the program will
execute at the same time.
3. [Advanced example] A JVM (Java Virtual Machine) runs in a single process
and threads in a JVM share the heap belonging to that process. That is why
several threads may access the same object. Threads share the heap and have
their own stack space. This is how one thread’s invocation of a method and its
local variables are kept thread safe from other threads. But the heap is not
thread-safe and must be synchronized for thread safety.
2. Speed
Most cloud computing services are provided self service and on demand, so even vast amounts
of computing resources can be provisioned in minutes, typically with just a few mouse clicks,
giving businesses a lot of flexibility and taking the pressure off capacity planning.
3. Global scale
The benefits of cloud computing services include the ability to scale elastically. In cloud speak,
that means delivering the right amount of IT resources—for example, more or less computing
power, storage, bandwidth—right when its needed and from the right geographic location.
4. Productivity
On-site datacenters typically require a lot of “racking and stacking”—hardware set up, software
patching and other time-consuming IT management chores. Cloud computing removes the need
for many of these tasks, so IT teams can spend time on achieving more important business goals.
5. Performance
The biggest cloud computing services run on a worldwide network of secure datacenters, which
are regularly upgraded to the latest generation of fast and efficient computing hardware. This
offers several benefits over a single corporate datacenter, including reduced network latency for
applications and greater economies of scale.
6. Reliability
Cloud computing makes data backup, disaster recovery and business continuity easier
and less expensive, because data can be mirrored at multiple redundant sites on the
cloud provider’s network.