answersLogoWhite

0

It is a pointer.You can pass a smart pointer from one thread to another, and the two threads are free to use their smart pointers just as they were native pointers. They can copy them, assign them, and do whatever they want with them, and the smart pointer will not get you into trouble.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What is thread exception?

In computer terminology, the thread refers to the sequence of instructions that have been executed. When the computer reaches a decision point (if x > 1), the thread may take either of two paths. An "exception" simply means that something happened that was not expected or something that resulted in an unpredictable outcome. Effectively, a thread exception means that the computer ended up in an unexpected section of code. Thread exceptions can often be the result of pointer errors.


What is triple pointer?

Example: int x; -- integer int *px= &x; -- pointer to integer int **ppx= &px; -- pointer to pointer to integer int ***pppx= &ppx; -- pointer to pointer to pointer to integer


How are arguments passed to a function?

Arguments are passed to functions via the thread's function call stack. Every thread has its own call stack, which is a small region of contiguous, fixed-size memory that extends downwards into lower addresses. The stack is allocated when the thread is instantiated and deallocated when the thread terminates thus there is minimal cost in using the stack. Data is pushed and popped from the stack while a stack pointer keeps track of the top of the stack (the lowest unused address).


C program pointers to pointers examples?

Pointer to Pointer is a double pointer, denoted by (**). Pointer stores the address of the variable and pointer to pointer stores the address of a pointer variable and syntax can be given as int **ptr2ptr;


What is generic pointer in C?

When a variable is declared as being a pointer to type void it is known as a generic pointer. Since you cannot have a variable of type void, the pointer will not point to any data and therefore cannot be dereferenced. It is still a pointer though, to use it you just have to cast it to another kind of pointer first. Hence the term Generic pointer.

Related Questions

What is a thread control block?

thread control block contain thread specific information such as -Stack pointer, PC, thread state (running, …), register values, a pointer to PCB, … The Thread Control Block acts as a library of information about the Thraeds in a system. Specific information is stored in the Thread control block highlighting important information about each process. By: ASIM JAVAID IQBAL


What is thread exception?

In computer terminology, the thread refers to the sequence of instructions that have been executed. When the computer reaches a decision point (if x > 1), the thread may take either of two paths. An "exception" simply means that something happened that was not expected or something that resulted in an unpredictable outcome. Effectively, a thread exception means that the computer ended up in an unexpected section of code. Thread exceptions can often be the result of pointer errors.


How does a thread work in a CPU?

A thread in a CPU is a sequence of instructions that the CPU can execute independently from other threads. Each thread has its own program counter, stack pointer, and set of registers. The CPU switches between threads to give the appearance of running multiple tasks simultaneously.


Difference between pointer to constant and constant pointer?

1. pointer to a constant means you can not change what the pointer points to 2. constant pointer means you can not change the pointer.


What is triple pointer?

Example: int x; -- integer int *px= &x; -- pointer to integer int **ppx= &px; -- pointer to pointer to integer int ***pppx= &ppx; -- pointer to pointer to pointer to integer


What are pointer to pointer?

A pointer only holds an address information (location) in the memory. if a pointer holds points another pointer then it is a pointer to an other pointer. Pointer holds an address in the memory so in that address there is an other location information that shows another location.


What is the difference between stack pointer and program counter?

The stack pointer keeps track of the top of the stack used by the current thread. The program counter keeps track of the next instruction in a program. Both are registers and both store a memory address.


How are arguments passed to a function?

Arguments are passed to functions via the thread's function call stack. Every thread has its own call stack, which is a small region of contiguous, fixed-size memory that extends downwards into lower addresses. The stack is allocated when the thread is instantiated and deallocated when the thread terminates thus there is minimal cost in using the stack. Data is pushed and popped from the stack while a stack pointer keeps track of the top of the stack (the lowest unused address).


What is pointer of pointer?

pointer is the variable that holds the address of another variable


Why is double pointer used?

Double pointer is a pointer to a pointer. So you can work with the double pointer as you work with a single one.Or you might mean 'pointer to double', eg:void clear_double (double *dp){*dp = 0;}


Define pointer to pointer in c?

Double (**) is used to denote the double pointer. As we know the pointer stores the address of variable, Double pointer stores the address of any pointer variable. Declaration : int **ptr2Ptr;


What is void pointer and what are its uses?

Void pointer can hold the address of any kind of pointer. But we can't operate on void pointer