can any one suggest some difference regards threading and processing

Recommended Answers

All 4 Replies

do you mean threads and processes ???

yes i van to know the procesesss creation and thread creation its management and all if u can thanks for ur reply

threads are lightweight processes(consuming much less resources than the heavyweight processes) which are created by some process.

A process can contain multiple threads. In most multithreading operating systems, a process gets its own memory address space; a thread doesn't. Threads typically share the heap belonging to their parent process. For instance, a JVM runs in a single process in the host O/S. Threads in the JVM share the heap belonging to that process; that's why several threads may access the same object. Typically, even though they share a common heap, threads have their own stack space.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.