Python Forum
i want this program to be as fast as possible
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want this program to be as fast as possible
#1
i want this program to be as fast as possible, so i might do it in C. it's an admin tool. what it is to do on Linux or Unix is to force the PID number to wrap around, typically at 32767, but maybe at other numbers as high as 65535. if PID numbers exceed 65535 then the platform is apparently using more than 16 bits for the PID number, and the program should abort out of fear of 2147483647. can someone do this super fast, nearly as fast as it can be done in C, Python? if it finds itself running on Windows i don't know what it should do because i don't know how Windows does this. if it just aborts, that's fine.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
I want world peace and to prevent people starving...
OK, on more personal level - unlimited and fast Internet connection... (Yeah, I'm joking)

Does anyone else would like to share? :-)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
As fast as possible means written in Assembly. This is like a magic for me.

I want one night with Scarlett Johansson. Angel
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#4
you can set Linux max PID up to 2^22 (on 32 bit machine)
stored in
Output:
/proc/2497/limits
you can also use:
Output:
cat /proc/sys/kernel/pid_max
to get what it's set to
see: https://linux.die.net/man/5/limits.conf
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020