Parallel Processing Detection and Program Return Value Detection


 
Thread Tools Search this Thread
Top Forums Programming Parallel Processing Detection and Program Return Value Detection
# 1  
Old 06-30-2011
Parallel Processing Detection and Program Return Value Detection

Hey, for the purpose of a research project I need to know if a specific type of parallel processing is being utilized by any user-run programs. Is there a way to detect whether a program either returns a value to another program at the end of execution, or just utilizes any form of parallel processing? This is without having access to the source code of the program. Help please.
# 2  
Old 06-30-2011
All programs return a value to another program.

You can't tell what algorithm a program uses just looking at it, no.

If you ran it you could maybe see if it created threads or child processes.
# 3  
Old 06-30-2011
is it possible to tell what created the thread or child process? or follow the child/thread to find the program it is linked to?
# 4  
Old 07-01-2011
Quote:
Originally Posted by azar.zorn
is it possible to tell what created the thread or child process?
Try ps -ejT, that should print a process tree. The information ps uses to create this may be available under /proc/. For more detail than that I'd need to know what your system is.
Quote:
or follow the child/thread to find the program it is linked to?
You can do that too! If you're on Linux, strace prints all system calls the program makes as it happens, including the various clone_* ones that Linux uses to create threads or processes. (you'd want to run it with -f so it follows any children it creates in the meantime too.) I think Solaris has dtrace. Other systems I'm not sure.

How to get information on threads would be a lot more system-specific than information on processes.
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 07-01-2011
thank you. the purpose of the project is a new type of software security. it's to prevent people from hacking commercial programs, so it even extends to Linux and Mac, not just Windows. they way I designed it, it's a modification to the compiler used to create the software, this is done for efficiency purposes (code once and apply to all vs. code into all). and the program splits between two methods based on whether the user is running any programs to trace random number generators (long story behind that), so I needed to know if I can detect the parallel processing. I'm not aware of that many ways to trace random number generators, but I think I covered most. can anyone who knows any ways list all the possible methods they know, so I can make sure I don't miss any that are coverable
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Curl detection of redirect

This URL: Internet Archive Wayback Machine ..will redirect to this URL when using a browser: https://web.archive.org/web/20140110200053/http://rapor.tuik.gov.tr/reports/rwservlet?adnksdb2&ENVID=adnksdb2Env&report=wa_idari_yapi_10sonrasi.RDF&p_il1=17&p_yil=2012&p_dil=2&desformat=html But... (0 Replies)
Discussion started by: Mid Ocean
0 Replies

2. Shell Programming and Scripting

SQL Injection Detection

I want to grep/awk /var/log/httpd/mysite-access_log.log and check if 2 words from the following appear in a single line: benchmark union information_schema drop truncate group_concat into file case hex lpad group order having insert union select from (12 Replies)
Discussion started by: koutroul
12 Replies

3. AIX

NFS mount detection

Hi, I have a handy script in Linux, part of which checks for the presence of nfs mounts, using the information in /proc/mounts. Is there a suitable command or file in AIX that could be used in a similar way? Many thanks in advance (1 Reply)
Discussion started by: SDG
1 Replies

4. Shell Programming and Scripting

NAT detection

hellou, can anybody help me with nat detection in real time ? i prefer some detection script because i try some nat detection program's for example p0f or i'm using tcpdump, but i would get contain of specific packet. Some ideas? (1 Reply)
Discussion started by: TheTechnic
1 Replies

5. UNIX for Dummies Questions & Answers

Parallel processing using AWK program

Hi All, could any expert tell me about writing a parallel processing program using AWK program is possible or not? Any example would be much appreciated... With Regards / Mysore Ganapati :confused: (5 Replies)
Discussion started by: ganapati
5 Replies

6. IP Networking

modem detection

How to get information that where is my modem configured in /dev. I have two modems configured in my device .. one is USB and other is PCI modem.. USB is detected as /dev/USB0. but how to see about PCI modem? (0 Replies)
Discussion started by: s123.radha
0 Replies

7. UNIX for Dummies Questions & Answers

virus detection

IS there virus software for unix? I worked in a Solaris environment and dont remember having anything. I also ask because the current enviroment i am working on is Microsoft and they argue that they do not use unix because of virus detection. Any input would be greatly appreciated. (1 Reply)
Discussion started by: pbonilla
1 Replies
Login or Register to Ask a Question