Search Results

Search: Posts Made By: tamil.pamaran
Forum: Programming 05-14-2013
3,298
Posted By tamil.pamaran
Asynchronous communication between master and slave threads
I am writing a process that has a master thread and a set of slave threads. Master thread is supposed to get jobs dynamically and assign to slave thread which is free. Master also get results back...
9,980
Posted By tamil.pamaran
Hansan44 and Alister, Thanks a lot for your...
Hansan44 and Alister,

Thanks a lot for your responses. :)

/Tamil
9,980
Posted By tamil.pamaran
Thanks for the responses !!! 1% is an...
Thanks for the responses !!!

1% is an arbitrary value. How does pipe work? I assume wget gets complete file and passes it to the pipe, which I am not interested in.

I tried curl and its useful....
9,980
Posted By tamil.pamaran
Thanks all, I am not interested in piping or...
Thanks all,

I am not interested in piping or killing, as I wanna stop transfer exactly after 1%. I hope curl should be useful. Will have a look into that.

/Tamil
9,980
Posted By tamil.pamaran
How to cancel wget download after 1%?
I am running a video download test and automating that. I wanna know how to stop a wget download session when downloads reached 1%

Thanks in advance,
Tamil
2,347
Posted By tamil.pamaran
Problem with install aquila dsp library from source.
Hi All,

I am trying to install aquila-dsp. an open source c++ library from dsp functions in my ubuntu 12.10. I downloaded the aquila source. configured, make and did make install. It seems to be...
Forum: Programming 03-09-2013
4,962
Posted By tamil.pamaran
Thanks achenle and expl, Sorry for the...
Thanks achenle and expl,

Sorry for the delayed reply.

Since the measurement is done for research prototype, its very controlled process. Hence I decided to go for mutex based solution. In a...
Forum: Programming 02-21-2013
3,452
Posted By tamil.pamaran
Make and source files can be in different...
Make and source files can be in different folders.

I don't understand how the three targets are combined into one.
Forum: Programming 02-08-2013
3,452
Posted By tamil.pamaran
Why do you want the following line? TARGETS...
Why do you want the following line?

TARGETS = $(BINDIR)/1dvel2 $(BINDIR)/1dvel $(BINDIR)/2dvel
all: $(TARGETS)

Do you wanna create a new executable with these three binaries?
Forum: Programming 02-07-2013
4,962
Posted By tamil.pamaran
Venam, Mutex should be used in the case of...
Venam,

Mutex should be used in the case of shared memory.

For instance, an external structure array can be updated by measured thread and read(remove) by logging thread ( with mutex to avoid...
Forum: Programming 02-07-2013
4,962
Posted By tamil.pamaran
Initial solution
achenle,

Thanks for quite detailed response.

I was thinking about a similar solution. Apart from getting logs in string format, syslogd process works in similar fashion. Which mandates lot of...
Forum: Programming 02-06-2013
4,962
Posted By tamil.pamaran
Why do we need a thread to count seconds, when...
Why do we need a thread to count seconds, when there are systems functions like time() ?

Mutex is also known as semaphore, using which will make threads blocking, which is a bottleneck.

/Tamil
Forum: Programming 02-06-2013
4,962
Posted By tamil.pamaran
Thanks Venam, I feel creating a new thread...
Thanks Venam,

I feel creating a new thread for each thread in focus, would be a bad idea. I am thinking of using time() system call to measure time differences. There should not be any race...
Forum: Programming 02-06-2013
4,962
Posted By tamil.pamaran
Efficient logging of time measurements
Hi all,

I am working on a software, which was developed using C programming on unix environment. I have added certain functionality to the software.

Now, I interested in measuring time taken by...
Forum: Programming 11-03-2011
1,617
Posted By tamil.pamaran
Thanks Corona688, In my case, It does not...
Thanks Corona688,

In my case, It does not overwrite the entry. Either it is ignored or stored as new one with the same key.
Forum: Programming 11-03-2011
1,617
Posted By tamil.pamaran
hsearch_r for multiple with same key
Folks,

I have a problem with using the hashtable. my hash table will have to store 2 entries with different data values and same key.

key data
-----------
steps 34
steps 1024

Code:...
Forum: Programming 10-17-2011
3,408
Posted By tamil.pamaran
Thanks agama, That did the trick !!!
Thanks agama, That did the trick !!!
Forum: Programming 10-16-2011
3,408
Posted By tamil.pamaran
Macro to put single quotes around character
Dear Mates,

I am trying to write a macro to replace with its arguments with singles quotes around each argument.

#define DECR(a,b,c,d,e) decr('a','b','c','d','e')

if the usage is
...
2,610
Posted By tamil.pamaran
parsing colossal cave adventure advent.dat
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
The course...
10,513
Posted By tamil.pamaran
Thanks Friends, Considering your answers. I...
Thanks Friends,

Considering your answers. I wonder if this is not possible by using SED command.
10,513
Posted By tamil.pamaran
Guru, Thanks for you reply. I am getting...
Guru,

Thanks for you reply. I am getting errors on passing the variable for the range limits.

awk -v a=$start -v b=$end '$0 > $a && $0 < $b' timestamp.log

awk: program limit exceeded:...
10,513
Posted By tamil.pamaran
grep for a range of numbers
Dear Friends,

I want to know how to grep for the lines that has a number between given range(start and end).

I have tried the following sed command.

sed -n -e...
3,715
Posted By tamil.pamaran
fpmurphy, Thanks for your response. Your...
fpmurphy,

Thanks for your response. Your suggestion partially satisfies my requirement. However Here abc will be replaced by the current date always. I want to pass "abc" as the input to the data...
1,398
Posted By tamil.pamaran
Thanks Guruprasad, I would like to know if...
Thanks Guruprasad,

I would like to know if this is possible with any commands other than awk family. Please clarify.
3,715
Posted By tamil.pamaran
Guruprasad, Thanks for your response....
Guruprasad,

Thanks for your response. However I am not looking this one. I exactly want to know how to use date command in substitution replace string. a log file will be read from the pipeline...
Showing results 1 to 25 of 37

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