Python Forum
Drawing a sine curve in memory view of Task Manager
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drawing a sine curve in memory view of Task Manager
#6
Another solution:

Create many subprocesses:
  • All subprocesses will try to grab a visible chunk of memory (say 50M).
  • You start the processes at regular intervals, and each process exits after some delay, that is specific to it, with processes started first having longer lifespans.
  • So the first process grabs memory for 20 seconds, the seconds starts one second later but has a lifespan of 18 secs, and the third has a life span of 16 seconds, etc.
  • Once you detect the end of the first process, do it again.
This should create a (stepped) triangular wave. By adjusting the delays and the life spans, you can approximate your curve.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Messages In This Thread
RE: Drawing a sine curve in memory view of Task Manager - by Ofnuts - Sep-20-2016, 08:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Learning curve astral_travel 3 448 Apr-05-2024, 06:58 PM
Last Post: jefsummers
  How can I design shapes on a curve in python? mervea 2 824 Sep-14-2023, 01:04 PM
Last Post: Pedroski55
  Fitting data to a curve daaegp 1 630 Jun-30-2023, 08:06 PM
Last Post: Gribouillis
  count certain task in task manager[solved] kucingkembar 2 1,138 Aug-29-2022, 05:57 PM
Last Post: kucingkembar
  Find factor to match test curve to golden curve SriRajesh 0 1,567 Jun-17-2021, 04:39 AM
Last Post: SriRajesh
  Fitting Gaussian curve to data file Laplace12 0 2,768 Jun-09-2021, 10:45 AM
Last Post: Laplace12
  Schedule a task and render/ use the result of the task in any given time klllmmm 2 2,110 May-04-2021, 10:17 AM
Last Post: klllmmm
  How to create a task/import a task(task scheduler) using python Tyrel 7 3,763 Feb-11-2021, 11:45 AM
Last Post: Tyrel
  search of a curve fitting function bluffy5 2 2,442 Dec-13-2020, 09:53 AM
Last Post: ndc85430
  How to create an app manager _ShevaKadu 8 3,818 Nov-01-2020, 12:47 PM
Last Post: _ShevaKadu

Forum Jump:

User Panel Messages

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