processes

How to educate a development manager about the difficulties of software design?

I have had a few development managers who don't seem to understand or appreciate the difficulties of software design and implementation. Such managers believe that processes and methodologies completely solve the problem and I have a tough time explaining to them that it is not so and that you cannot read a book on the latest process fa...

Launching process in C# Without Distracting Console Window

I figure out how to launch a process. But my problem now is the console window (in this case 7z) pops up frontmost blocking my vision and removing my focus interrupting my sentence or w/e i am doing every few seconds. Its extremely annoying, how do i prevent that from happening. I thought CreateNoWindow solves that but it didnt. NOTE: s...

low level programming: How does the OS start a new thread/process?

Whenever the bootloader loads the operating system there is presumably only ONE program flow active, right? This would mean, one processor holds the instruction pointer and executes the commands it founds at the position the EIP register points to. At which point and how does the system start to exploit more processes and/or threads (no ...

How can I re-spawn a thrift server in java after an exception?

I'm new to java and have written a small, but quite important, thrift service in java. I've noticed that occasionally it'll stop serving without any error messages; it seems that the java process just dies, randomly, without a stack-trace or exception. What would be the best way to ensure this process stays alive even after an error? ...

fork in freeBSD unix

Does the fork system call allocate a new user structure for the child process?It does allocate new process structure for the child process. ...

Single or multiple process, what criteria decides it?

In embedded systems using linux for an application; under which condition will you divide an application into two/three processes. My main doubt is; is it required to divide a single application component into multiple processes and then run multiple processes to achieve the required application functionality. ...

files on multiple processes

Hello, If one of my processes open a file, let's say for reading only, does the O.S guarantee that no other process will write on it as I'm reading, maybe leaving the reading process with first part of the old file version, and second part of the newer file version, making data integrity questionable? I am not talking about pipes which...

CPU Cards for Parallel Computation?

I remember reading some time ago that there were cpu cards for systems to add additional processing power to do mass parallelization. Anyone have any experience on this and any resources to get looking into the hardware and software aspects of the project? Is this technology inferior to a traditional cluster? Is it more power consciou...

Unable to find processes unused for half an hour

You can get underground processes by ps ux I am searching a way to find processes to which I have not touched for 30 minutes. How can you find processes unused for an half hour? ...

How to make two python programs interact?

I have a HTTP sever in one program and my basic application in another one. Both of them are loops, so I have no idea how to: Write a script that would start the app and then the HTTP server; Make these programs exchange data in operation. How are these things usually done? I would really appriciate Python solutions because my script...

Managing resources allocated by client processes

As part of an experiment, I want to write a OpenGL-based UI server for applications, similar to X11 or Quartz in architecture: a core process renders objects into a single viewport, but all graphical objects are being controlled by remote processes. The idea is that the views stability is only dependent on the core process. If a client ...

How do I tell what a Linux process is waiting for?

I'm trying to track down the cause of performance bottlenecks in an application I'm debugging under Linux. The various processes involved seem to spend a lot of their time blocking on I/O requests, and I was wondering if anybody knew any Linux tricks that let you see why a particular process is blocked/what resource it's waiting for? Is ...

ruby: how to fire and forget a subprocess?

Hi, I have a long running process and I need it to launch another process (that will run for a good while too). I need to only start it, and then completely forget about it. I managed to do what I needed by scooping some code from the Programming Ruby book, but I'd like to find the best/right way, and understand what is going on. Here'...

Threads vs Processes in Linux

I've recently heard a few people say that in Linux, it is almost always better to use processes instead of threads, since Linux is very efficient in handling processes, and because there are so many problems (such as locking) associated with threads. However, I am suspicious, because it seems like threads could give a pretty big perform...

What are some key concepts for effective development teams?

Where I work we've recently put together what we call the Development Standards Committee which is tasked with improving our procedures, processes, methodologies, tools, standards, and whatever we think would help us become a more effective team. We've got a spreadsheet of items that we've ranked and are going to start tackling from the...

Why do my processes only consume 5% of the processors power?

Not sure if this is the appropriate place for this question, but it seems related to threading and system resources and all that. Why Does my Task Manager show that the System Idle Process is using 90%+ of the CPU power when I have 3 different processes going!?!? Is it because of I/O bottlenecks? For example, if I do an SVN checkout, ...

Pros and Cons regarding extended use of branches.

I want to be able to choose the right branching strategy for most thinkable situations and organizations. So I'm looking for a extensive list of positive and negative effects of extending the use of code repository branches in a development organization. Please only post one pro or one con in each post, so that the voting system can he...

How can I get a process handle by its name in C++?

I'm trying to get the process handle of, say example.exe, so I can call TerminateProcess on it. How can I do this? Notice, it doesn't have a window so FindWindow won't work. ...

Monitoring a sub-process / can I get TotalProcessorTime for a Process group?

Is there a way to get the Process.TotalProcessorTime that reflects a process PLUS any processes that it has spawned? Alternatively, how can I verify that the process (or it's descendants) are still "actively" running? My app is spawning an external process and waiting for it to exit. With sample data it takes 5-20 minutes to complet...

[C++] How can I kill all processes of a program?

Hey everybody, I wrote a program that forks some processes with fork(). I want to kill all child- and the mother process if there is an error. If I use exit(EXIT_FAILURE) only the child process is killed. I am thinking about a system("killall [program_name]") but there must be a better way... Thank you all! Lennart ...