No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Can anybody give some general examples of usage of spinlock where mutexes cannot be used? Also whats the difference between the spinlock and mutex? |
|
I want to know how a read/write calls is accomplished in linux? I mean how a function say read() will read the data from a file. What all will be the steps from user mode read() function call to kernel mode? Will anybody explain the steps or let me know … |
|
Using visual studio 2008 I created a small vc++ project and ran it using the exe created. The problem is the exe runs fine on my PC. But when I tried to run the exe on an another PC it gave the error "The application has failed to start because … |
|
If there is a pointer member in a class. Eg.: [CODE]Class XYZ { Int *x; Char *c; }[/CODE] Then in such a case what all precautations do we need to take while handling such a member and the class? |
|
I am getting the following error while building the code in VC: error C2143: syntax error : missing ')' before '&' on building the below code: [CODE]typedef unsigned int uint4; void Find(uint4& a, uint4 b, uint4 c); void Find(uint4& a, uint4 b, uint4 c) { . . . . }[/CODE] … |
|
I want to fill a structure and then print it. How to print the values of the structue? The structure is: [CODE] #define UINT32 unsigned int #define INT32 int #define UCHAR unsigned char typedef struct CheckSumPair { UINT32 weakcs; // The weak, rolling Adler32 checksum. UCHAR StrongCS[10]; };[/CODE] I have … |
|
I am writing a adler32 code to compute the adler32 checksum of a string. On the net I came across various sample codes: I did not understand some code entirely as <b>it has additional code</b> marked in bold below apart from the basic implementation of the adler32 logic. I did … |
|
error LNK2005...already defined While building my code in VS2008 I am getting a build error: error LNK2005...already defined in .... 1>Linking... 1>Main.obj : error LNK2005: "unsigned char * X1" (?X1@@3PAEA) already defined in BC.obj 1>Main.obj : error LNK2005: "char * X2" (?X2@@3PADA) already defined in BC.obj 1>Rs.obj : error LNK2005: … |