Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Problem

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody think of good ideas to make a script execute 10% of the time, another for 20% of the time and so on..
The total time for which the program executes is not known in advance.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Timers?? Controlled by input parameters??
You sure don't give a person much to work with :roll: .
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam sorry I wanst very clear in the earlier message.Let me try again.
Here is what I need to do. Say I have a couple of users who spend 10% of their time adding items to a shopping cart, 20% of their time browsing etc..
I want to model this case , using 10 users who do all the activities above.The 10 users may ibn the system for various times.But as long as the system is up , 10% of the total time is spent shopping, 20% browsing etc...
How do I simulate this? I guess what makes it hard for me is that I dont know how long the system is up in advance.
 
Ranch Hand
Posts: 5397
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
are you sure? You want answer here, in this MD.
Why do you want stimulate this?
The way you deduce that user spend 10% time at particular area, you can find average time.
Final try:
Ask user when he enters in your commerce site, how much time he wants to be there. After that much time, kick him off
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have one user who does nothing but adds items to his shopping cart. Thats 10%.
Have 2 users who do nothing but browse. Thats 20%.
Etc.
Then it does not matter how long the execution is.
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic