You are not logged in. Please login at www.codechef.com to post your questions!

×

java , recursion problem , threads

I have genuine doubt regarding java.I know that java doesn't support more than 1000 recursive calls at online judge ,it shows error. I commented regarding this before and someone said you can write program that switches over one thread to another and so on, but didn't get such code anywhere .So can anybody Provide me code(proper code to switch over threads),so that i can write recursive programs in java too to get AC? Providing code help will be appreciated.

asked 20 Dec '14, 00:43

n1n1_4's gravatar image

5★n1n1_4
844621
accept rate: 50%

plz Help??

(20 Dec '14, 13:08) n1n1_45★

????????????

(21 Dec '14, 14:15) n1n1_45★

I am a complete beginner in Java so I can't help much. However, you may find this link useful: http://stackoverflow.com/questions/15530484/how-to-switch-between-two-thread-back-and-forth

(21 Dec '14, 15:15) eisenhover3★

Maybe you are talking about Multithreading in java.You can google "Multithreading, it might be helpful to you.

link

answered 21 Dec '14, 15:45

shubham_coder's gravatar image

2★shubham_coder
284
accept rate: 6%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,142
×282

question asked: 20 Dec '14, 00:43

question was seen: 26,201 times

last updated: 21 Dec '14, 15:45