hi ,
have u ever worked on RTOS?
I have doubts. kindly help to get rid of dilemma.
1) what is the difference between signal and event?
2) what is the difference between mutex and binary semaphore?
i have searched on net, but failed to clear doubts.
Can u help me?
Thanks.
Sukhdeep Singh.
Search found 92 matches
- Fri Jun 04, 2010 12:20 pm
- Forum: C/C++ Programming
- Topic: header files in C++
- Replies: 4
- Views: 3922
Re: header files in C++
Thanks Neo.
- Wed Jun 02, 2010 5:25 pm
- Forum: C/C++ Programming
- Topic: header files in C++
- Replies: 4
- Views: 3922
Re: header files in C++
Thanks.
But i have also seen header file, where it does not have any extension.what abt that? why header files do not carry any extension.
But i have also seen header file, where it does not have any extension.what abt that? why header files do not carry any extension.
- Wed Jun 02, 2010 3:09 pm
- Forum: C/C++ Programming
- Topic: header files in C++
- Replies: 4
- Views: 3922
header files in C++
I have seen header files in c++ are without *.h extension.while extension is preserved in c. why need to declare header files without any *.h extension? what will its benefit.
Thanks
Thanks
- Sat May 22, 2010 12:14 pm
- Forum: C/C++ Programming
- Topic: difference in far and huge pointer
- Replies: 6
- Views: 5521
Re: difference in far and huge pointer
in this program int main() { char far *fp=0x8f290ef; char huge *hp=0x8f290ef; for(char loop=0;loop<20;loop++) { cout<<"far"<<(long *)fp<<'\t'<<"huge"<<(long *)hp<<endl; } getch(); } i have seen the in case of huge pointer its offset value(i.e. first LSB of 4 byte address) is between 0 to 0xf. and af...
- Sat May 22, 2010 12:03 pm
- Forum: C/C++ Programming
- Topic: __align in c++
- Replies: 6
- Views: 5231
Re: __align in c++
Thanks Neo.
- Fri May 21, 2010 6:51 pm
- Forum: C/C++ Programming
- Topic: __align in c++
- Replies: 6
- Views: 5231
Re: __align in c++
Thanks,
It means if i declare
__align(128) unsigned char buffer[10];
then suppose address of buffer[0]=a
buffer[1]=a+128/8;
.....
is it right? but i have not seen this?
It means if i declare
__align(128) unsigned char buffer[10];
then suppose address of buffer[0]=a
buffer[1]=a+128/8;
.....
is it right? but i have not seen this?
- Fri May 21, 2010 2:57 pm
- Forum: C/C++ Programming
- Topic: __align in c++
- Replies: 6
- Views: 5231
Re: __align in c++
Thanks,
But i have seen that
__align(16) unsigned char buffer[20];
what will be its benefit here for declaring buffer of 20 elements which can store only value from 0 to 255?
But i have seen that
__align(16) unsigned char buffer[20];
what will be its benefit here for declaring buffer of 20 elements which can store only value from 0 to 255?
- Fri May 14, 2010 12:28 pm
- Forum: C/C++ Programming
- Topic: Doubts about flaot, double, unsigned and signed
- Replies: 4
- Views: 4053
- Fri May 14, 2010 12:28 pm
- Forum: C/C++ Programming
- Topic: __align in c++
- Replies: 6
- Views: 5231
__align in c++
Hi,
I have read that __align is used to set the boundary of variable, what is its benefit.
suppose __align(2) unsigned short u;
even unsigned short variable can have its value from 0 to 65535. then where is difference lies.
second thing, can we say that __align is a qualifier in c/c++.
Thanks.
I have read that __align is used to set the boundary of variable, what is its benefit.
suppose __align(2) unsigned short u;
even unsigned short variable can have its value from 0 to 65535. then where is difference lies.
second thing, can we say that __align is a qualifier in c/c++.
Thanks.