Search Results

Search: Posts Made By: rvan
Forum: Red Hat 02-24-2011
2,258
Posted By rvan
shared object
Hi,

I would like to create a shared object ( .so).

This shared object

1. uses the functions from a library.
2. Also it should be able to use the global variable in an app

To achieve...
Forum: Programming 12-28-2009
4,012
Posted By rvan
Can Mutex be replaced with anything?
Hi All,

To avoid race condition, instead of using mutex, semaphore, spinlock etc.... Is there any other mechanism by which we can avoid race condition in an multi-threading environment.

-Thanks
Forum: Programming 12-28-2009
4,977
Posted By rvan
multiplying a number by two without using Arithmetic and Shift operators
Hi All,

Is it possible to multiply a number by two without using Arithmetic and Shift operators?

_Thanks
Forum: IP Networking 11-16-2009
33,689
Posted By rvan
Command to ping 1500 bytes of data to a destination system
Hi All,

I want to ping 1500 bytes of data from a pc to another pc in the network. What is command used for the same?

Thanks
Forum: Programming 08-09-2009
4,694
Posted By rvan
After converting the hexstr to Hex and storing the Hex in a char*
Hi All,

My main intension of is to convert the Hexstring stored in a char* into hex and then prefixing it with "0x" and suffix it with ','

This has to be done for all the hexstring char* is...
Forum: Programming 03-31-2009
16,717
Posted By rvan
fine. thank you. #include <stdio.h> ...
fine. thank you.

#include <stdio.h>

#pragma pack(1)

main()
{

char begin;
struct ptr
{
int a;
char b;
int *p;
}abc;
char end;

printf("Using sizeof operator = %u\n",...
Forum: Programming 03-30-2009
16,717
Posted By rvan
Thank you pshaikh. it exactly gives the sizeof...
Thank you pshaikh. it exactly gives the sizeof the structure. While executing your first sample piece of code... it is mostly &begin is greater than &end. Here all the local variables begin, end and...
Forum: Programming 03-30-2009
16,717
Posted By rvan
sizeof an array of structure without using 'sizeof' operator
Hi All,

is it possible to find out the size of an array of structures ( without using 'sizeof' operator). The condition is we have the array of structure instant but we are not aware of the...
8,635
Posted By rvan
difference between .make and .mak file
Hi All,

In our project i could see .make files and some .mak file.
The build rules and the related commands been written in make file.
All the project directory specific thing been written in...
Forum: Programming 05-01-2008
5,916
Posted By rvan
Thank you Jim I understand the rules of this...
Thank you Jim
I understand the rules of this forum. And this is not homework.
I have difficulty in understanding the Hashing algorithms being used in that.(Zlib)
i was googling for Dictionary...
Forum: Programming 04-30-2008
5,916
Posted By rvan
Compression algorithm( usage of Hash tables)
Hi All,

i was browsing thru' the opensource glib(deflate/inflate) algorithms..
which i am supposed to implement. I came across Dictionary usage (Hash tables), LZ77 algorithm and Huffman coding...
Forum: Programming 10-11-2007
12,190
Posted By rvan
Hi, Thanks... The problem is solved ...
Hi,

Thanks...

The problem is solved
i have put "/" before the message queue name even while reading from the queue.. and the oflag as O_RDONLY for reading...
now its working fine...
...
Forum: Programming 10-08-2007
12,190
Posted By rvan
mq_open error
Hi,

Am creating a msgqueue using mq_open
</code>
main()
{
struct mq_attr attr; /* message queue attributes structure */
memset(&_attr,0,sizeof(struct mq_attr));
...
Forum: Programming 09-05-2007
14,560
Posted By rvan
hi guys, I was complicating by using mutex...
hi guys,

I was complicating by using mutex which is not needed at all..
as message queue read and write are atomic...

Thanks
Forum: Programming 09-04-2007
14,560
Posted By rvan
Hi porter, If pthread_mutex or pthread_cond...
Hi porter,

If pthread_mutex or pthread_cond cannot be used across process then what is the use of the following.......

pthread_mutexattr_setpshared(&mutatr, PTHREAD_PROCESS_SHARED)
...
Forum: Programming 08-24-2007
14,560
Posted By rvan
Hi blowtorch, Thanks a lot.. I agree with...
Hi blowtorch,

Thanks a lot..
I agree with you... when it is only message queue and message queue details we can manage with file...
here in this scenario as i have given the structures of mutex...
Forum: Programming 08-23-2007
14,560
Posted By rvan
Hi blowtorch n Neo Thank you for the reply... ...
Hi blowtorch n Neo
Thank you for the reply...



typedef struct cond
{
/* framework mutex structure for condition variable */
mutex_rs * mutexp ;
pthread_cond_t cond;
} cond_var;
...
Forum: Programming 08-22-2007
14,560
Posted By rvan
Am using Posix message queues
Am using Posix message queues
Forum: Programming 08-22-2007
14,560
Posted By rvan
message queues and multi-process
Hi,

Am supposed to use message queues to send and receive messages between the processes. when i was working on that i realised that the message qid and the message queue related data should be...
Forum: Linux 08-14-2007
7,771
Posted By rvan
in case of multi-processes, am scared that the...
in case of multi-processes, am scared that the processess may occupy more stack/data space which may result in memory crunch..
Forum: Linux 08-14-2007
7,771
Posted By rvan
Rlimit_stack
Hi,

when i tried ulimit -a in my system i got

"stack size (kbytes, -s) 10240"

Am trying to reduce the stack size using setrlimit command using the following program... but am...
Forum: Programming 07-20-2007
4,301
Posted By rvan
multiprocess debugger
Hi,

can somebody advise on a better multiprocess debugger?
I heard with gdb we face lots of problems in multiprocess scenario
currently i am using gdb debugger for a single process multithreaded...
Forum: Linux 07-18-2007
7,468
Posted By rvan
Hi guys, I could locate the libtcl in...
Hi guys,

I could locate the libtcl in /usr/lib


Thanks
Forum: Linux 07-18-2007
7,468
Posted By rvan
Hi, I used the same command "rpm -qa| grep...
Hi,

I used the same command "rpm -qa| grep -i tcl" and it returned tcl-8.4.9-3
so TCL is installed..
Am trying to link the tcl library and include the tcl header files in the make file..
but i...
Forum: Linux 07-18-2007
7,468
Posted By rvan
oops.. am really sorry for my previous reply...
oops..
am really sorry for my previous reply regarding TCL..
since i was working in windows and connect to Linux server from my m/c i made the mistake of including TCL from C:\ absent mindedly.......
Showing results 1 to 25 of 38

 
All times are GMT -4. The time now is 04:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy