Networking :: Creates Multiple Threads Of The Downloading Process?

Apr 30, 2010

I have created a simple download schedular with source-code give below :

---------------------record_strokes.sh-------------------
touch /home/student/packs/lynx/logfile
lynx -cmd_log /home/student/packs/lynx/logfile

[code]....

So, this is a simple download scheduler program code. Which creates multiple threads of the downloading process - wget (i could also have used 'curl' instead 'wget').Can you debug this code?

View 1 Replies


ADVERTISEMENT

General :: Download Scheduler Program Code Which Creates Multiple Threads Of The Downloading Process?

Apr 30, 2010

I have created a simple download schedular with source-code give below :

---------------------record_strokes.sh-------------------
touch /home/student/packs/lynx/logfile
lynx -cmd_log /home/student/packs/lynx/logfile

[code]....

View 1 Replies View Related

Programming :: Under Which Circumstances A Child Process Creates Another Child Process Using Fork

Dec 7, 2009

Consider the following code:

Code:

int main()
{
int i=0;
pid_t pid;
for(i=0;i<2;i++)

[code]....

I get the following output:

Parent: chid_pid=4356 i=0 parent's pid=4355
This is child 4356 i=0
This is child 4357 i=1

[code]....

I can observe instead of two children(as I expect) processes there are three. This is because child process 4356 creates its own child. Why all the messages of the type "This is child X i=Y" are concentrated one under another? How exactly fork works? Is affected by the fact that I have a dual-core processor?

View 3 Replies View Related

Programming :: Listing All Threads In A Process?

Dec 29, 2010

How to list all the threads spawned by a process?

View 4 Replies View Related

Programming :: CPU Sharing Between Process And Threads?

Mar 29, 2011

I have doubt regarding cpu sharing between process and threads.In my program iam creating 4threads=> 1 process+4 threads. How is cpu alloted to these all tasks. Is here process is getting cpu time like thread or having more cpu time than threads.

View 1 Replies View Related

Programming :: Find Number Of Threads In The Process In C Language?

Dec 23, 2009

I need to find how many threads are alive with respect to the current process for my further processing. Is there any means to trace this number ?[URL]I referred the above link. But sys/pstat.h is not in my system. Don't know which library gives this header.

View 14 Replies View Related

Programming :: Multiple Threads In Socket C++?

Nov 26, 2010

Code:
void* thread(void* arg)
{

[code]....

View 5 Replies View Related

General :: Determine On System Where Process Substitution Creates FIFO Files?

Aug 16, 2011

I'm writing a C++ application and need to work with process substitution in the Bash shell. I'm trying to find a way to validate the paths passed as arguments to my program, some of which point to FIFO files created by process substitution.

Is there a shell (or C++) way that I can check if the system creates these files in /dev/fd or if they are created somewhere else?

View 2 Replies View Related

OpenSUSE Network :: Samba Creates Multiple Copies Of Video In /tmp

Dec 30, 2009

I have a desktop and a laptop both running opensuse 11.2 with kde4. I have a samba share on my desktop. I tried opening a video on that share from my laptop (wirelessly) with Dolphin/SMPlayer. Here's what happened:

The video started downloading and the system tray notified me it would take 25 minutes. I thought that was too long (video is 350MB) so I checked the download speed and it was about 2 MB/s. It didn't make sense but I let it keep going.

25 minutes and 3.4 GB later, the download finally "finished"--according to the system tray. However, I checked my system monitor and something was still downloading at 2 MB/s. I confirmed with "df -h" that I was losing 2MB of space a second. At this point I only had about 700MB of disk space left so I rebooted (I wasn't sure how else to stop the download).

After digging around on / I found my video at /var/tmp/kdecache-londy/krun and it was 350MB. Then I found multiple copies of the same video, of varying sizes, on /tmp/kde-londy totalling 3GB.

I deleted the tmp files and tried it again. This time instead of clicking on the video to play it, I tried copying it to my laptop. Same thing started to happen but I didn't let it continue.

View 9 Replies View Related

Software :: Gnu Tar Creates Multiple Odd Directories With Numeric Names When Extracting?

Feb 4, 2010

I become to use tar with incremental feature for archiving data under ubuntu.But when I try to extract archive later under windows (using gnu tar also) it creates many directories like this:

<...>
11324447220
11324447221

[code]...

View 2 Replies View Related

Programming :: C Code Profiling Technique That Supports Multiple Threads?

Mar 8, 2011

I am using GPROF for my code profiling ,but it seems GPROF doesn't supports multithread .Does any one know any other technique for profiling the application code I have checked oprofile but it profile kernel ,I just required for C code profiling technique that supports multiple threads

View 1 Replies View Related

General :: Wrote A Program That Multiplies 2 Matrices Using Multi-threads And Another One Using Multiple Processes And Shared Memory?

Sep 22, 2010

I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?Also, how can I find the total turnaround time of my programs

View 1 Replies View Related

General :: Process Shows Multiple Process Ids(pids)?

Nov 9, 2010

I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?

View 1 Replies View Related

Programming :: Unix Programming - Single Process That Does Not Start Up Any Other Threads

Sep 28, 2010

i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.

View 3 Replies View Related

Programming :: Creates A Child Process With Fork And, When The Child Ends, Receives The SIGCHLD Signal And Wait For Its Termination?

May 23, 2011

I have a doubt about signals in C programming. I have done this little program to explain it. It creates a child process with fork and, when the child ends, receives the SIGCHLD signal and wait for its termination.Ok, quite easy, BUT when I execute this code the SIGCHLD signal is received twice, first as an error (returns -1) and the second one to finish the child process.I don't understand the meaning of the first received signal. Why is it generated? Is the code wrong? (if you add the SIGINT and press Ctrl+C during the execution it also receives two signals instead of one)

Code: #include <stdio.h>
#include <unistd.h>
#include <string.h>

[code]....

View 4 Replies View Related

Ubuntu :: Watch Downloading Process Then Go Hibernate?

Feb 27, 2011

I wonder whether it is possible to watch downloading process then after the download is complete, the system go hibernate automatically. I used to download using DownThemAll (firefox addon ) or JDownloader.

View 2 Replies View Related

Fedora :: Downloading Multiple RPMs With Yum

Dec 18, 2009

I am trying to create a local repository of installed RPMs on my workstation. Using the 'rpm -qa' I can gather the installed RPMs on my workstation. Is there a way for me download all these RPMs using the output of 'rpm -qa'? 'yum --downloadonly' will allow me the option of downloading without installing. Since the installed RPMs are not cached in my workstation I have to download these RPMs again. If I have a local repo then it will be easier for me restore my installation without having to rediscover the packages needed. I am looking for how I can download multiple RPMs.

View 5 Replies View Related

OpenSUSE :: Disable Downloading From Multiple Servers In ZYpp?

Mar 14, 2011

Whenever I do anything in Zypper, there is always a huge lag before it starts downloading a file, but then it downloads at normal speed. I think this has to do with the fact that it is now trying to download from multiple servers, and I would like to turn that off. Where do I go for that?

View 2 Replies View Related

Software :: Downloading A File From Multiple Servers ( Mirrors )?

Sep 13, 2010

I want to download a file (reasonably large) from say for e.g sourceforge. The problem is some mirrors give speeds of at max 40kB/s and I was considering options to increase this. I considered download managers and seems to work somewhat I experimented with axel and lftp's pget. Now I am wondering how I might download the same file from severals servers (say sourceforge's various mirrors). I tried axel by concataneting all server adresses but not sure if it is working. How do I verify that it is indeed using all the servers specified??

View 2 Replies View Related

Red Hat :: Yum Update Process Stops After Showing Line "Downloading Packages"?

Apr 6, 2010

Version: #1 SMP Tue Aug 18 15:51:54 EDT 2009Release: 2.6.18-164.el5While running "yum update"After Transaction summary shows download size. I answer the question:"Is this ok [y/N]: y" and process freezes on next line?I have tried yum clean all and retried same result? I have allowed it to continue for several , many, minutes but must CTRL Z to stop process then kill remaining yum processes.I have also deleted and rebuilt the rpm database

View 4 Replies View Related

Networking :: Ubuntun 9 Creates New Internet Connection Each Time And Drops?

Apr 23, 2010

I could not find an answer to this. I can connect to the internet no problem after I edit the connection name to NETGEAR instead of our last name. After a while it looks like it renews the connection and created a new one with the wrong name. The connection drops. It looks to me it is not using the same wireless connection each time but creating new ones that do not work for the above mentioned reason. What can I do to stop the loop and have it use the same connection always?

View 5 Replies View Related

General :: How To Run The Process On Multiple Core

Oct 26, 2009

How can we run the linux process like tar on multiple core? For example if we want to build the kernel we can use -j4 to distribute process of 4 different core. Is it possible to run long time consuming process on mulitple core?

View 1 Replies View Related

General :: Regarding Fork() Multiple Process?

Aug 2, 2011

trying to fork multiple child but the program does not go as i want...

My code :

Code:

#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

[code].....

View 14 Replies View Related

Fedora Networking :: Bluetooth Stack Creates Rfcomm0 But Is Not Applying The Correct Context Label To It?

Sep 9, 2010

if an admin decides this is security feel free to move, at the moment I can't decide where so posted here...On my laptop (msi-u100) my bluetooth stack creates rfcomm0 but is not applying the correct context label to it so selinux is bitching.

View 2 Replies View Related

Ubuntu :: CPU 100% On Boot / Multiple Instances Of Same Process

Jul 30, 2010

I tried the google and browsing the known bugs in the sticky before posting this thread.On boot the machine is pegged at 100%. It is a dual-core with 4GB of ram and is running 10.04, 64bit. Also, as time goes on it eats up all the ram till theres maybe 32mb free. What happens is there are multiple 4-10+ identical processes running. seem to be gnome related.The machine sits idle on my floor and runs samba and apache/mysql/gallery for my test website that no on but myself visits.

View 5 Replies View Related

Ubuntu :: Multiple Copies Of 'lt-httpd' Process

May 9, 2011

I recently inherited a server that I'm now looking after, and when browsing the running processes I came across a number of processes labelled:"/usr/local/apache-2.2.6/bin/.libs/lt-httpd -k start"

At any one time there are between 10 and 15 of them running.Googling the issue has been surprisingly unhelpful... can anybody even tell me what this process is, much less what sort of issue might result in multiple running copies? I'm running Debian Etch (release 4.0).

View 1 Replies View Related

General :: Renaming Multiple Files In Batch Process

Feb 21, 2010

I have some random files in a folder. I want to rename all of the files in a batch process. I have a text file that contains the Currentname of all the files in the folder, as well as a text file with all of the Newname of files in the folder. I want to replace Currentnames with Newnames.

For example, here are the names of the files in the folder:
1.mp4
2.mp4
3.mp4

I have a text file with the Currentname of all the files in the folder:
1.mp4
2.mp4
3.mp4

I have a text file with the proper Newname of the file:
a.mp4
b.mp4
c.mp4

I want to rename Currentname with Newname in the folder. So when I go to the folder the Newname of the files are:
a.mp4
b.mp4
c.mp4

View 14 Replies View Related

Programming :: Application Process Starts Multiple Times?

Jul 15, 2011

I'm porting C++ application from ARM to MIPS platform. It works now, but I see some strange timing problems. I've seen now that My app process is called multiply time. Here is "top" output:

Mem: 24592K used, 102084K free, 0K shrd, 0K buff, 16864K cached
CPU: 0% usr 99% sys 0% nice 0% idle 0% io 0% irq 0% softirq
Load average: 4.02 2.17 0.95
PID PPID USER STAT VSZ %MEM %CPU COMMAND
1888 1875 admin R 12096 10% 98% ./my_app.exe
code....

I don't see something like this when I compile it for x86, nor ARM.On MIPS I use uClibc instead of glibc.

View 6 Replies View Related

Ubuntu :: Gimp Batch Process Multiple Files Index To B&W?

Apr 15, 2010

I scanned hundreds of pages in gray scale and would like to batch process them to B&W. You can do this using the gimp GUI. what it does is get rid of all the gray shading from reflections off the paper when scanned. So you get crisp white backgrounds with black text and diagrams. I would like to simply do this to the entire group directory at one time as it would be quite a lot of effort to open them and do them one by one.

View 3 Replies View Related

General :: Create BASH Script To Process Multiple Inputs On Read

May 26, 2010

First post from a very new Linux user....I am trying to create a BASH script that will allow user to provide multiple directory names, Checks if the directory exists and if not create the directory.

I am using the following code:

Which works fine as long as the user enters a single directory name. How can I modify this so it will process all directory names user enters on the read response?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved